Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mercury233
ygopro2
Commits
43cb69e0
Commit
43cb69e0
authored
Apr 07, 2019
by
mercury233
Committed by
Unicorn369
Apr 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete old codes
parent
ffb143dc
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
13 additions
and
1234 deletions
+13
-1234
Assets/SibylSystem/MonoHelpers/UIHelper.cs
Assets/SibylSystem/MonoHelpers/UIHelper.cs
+9
-0
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
+1
-1
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+2
-2
Assets/SibylSystem/Servant.cs
Assets/SibylSystem/Servant.cs
+1
-1
Assets/old/UiverseAssests/loader.meta
Assets/old/UiverseAssests/loader.meta
+0
-9
Assets/old/UiverseAssests/loader/Delegater.cs
Assets/old/UiverseAssests/loader/Delegater.cs
+0
-19
Assets/old/UiverseAssests/loader/Delegater.cs.meta
Assets/old/UiverseAssests/loader/Delegater.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs
+0
-14
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs.meta
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/card_string_helper.cs
Assets/old/UiverseAssests/loader/card_string_helper.cs
+0
-289
Assets/old/UiverseAssests/loader/card_string_helper.cs.meta
Assets/old/UiverseAssests/loader/card_string_helper.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/loader.cs
Assets/old/UiverseAssests/loader/loader.cs
+0
-263
Assets/old/UiverseAssests/loader/loader.cs.meta
Assets/old/UiverseAssests/loader/loader.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/picture_loader.cs
Assets/old/UiverseAssests/loader/picture_loader.cs
+0
-424
Assets/old/UiverseAssests/loader/picture_loader.cs.meta
Assets/old/UiverseAssests/loader/picture_loader.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/string_reader.cs
Assets/old/UiverseAssests/loader/string_reader.cs
+0
-67
Assets/old/UiverseAssests/loader/string_reader.cs.meta
Assets/old/UiverseAssests/loader/string_reader.cs.meta
+0
-12
Assets/old/UiverseAssests/loader/ui_helper.cs
Assets/old/UiverseAssests/loader/ui_helper.cs
+0
-61
Assets/old/UiverseAssests/loader/ui_helper.cs.meta
Assets/old/UiverseAssests/loader/ui_helper.cs.meta
+0
-12
No files found.
Assets/SibylSystem/MonoHelpers/UIHelper.cs
View file @
43cb69e0
...
...
@@ -1098,4 +1098,13 @@ public static class UIHelper
foreach
(
Transform
achild
in
Transforms
)
achild
.
gameObject
.
layer
=
parent
.
layer
;
}
internal
static
Vector3
get_close
(
Vector3
input_vector
,
Camera
cam
,
float
l
)
{
Vector3
o
=
Vector3
.
zero
;
Vector3
scr
=
cam
.
WorldToScreenPoint
(
input_vector
);
scr
.
z
-=
l
;
o
=
cam
.
ScreenToWorldPoint
(
scr
);
return
o
;
}
}
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
View file @
43cb69e0
...
...
@@ -2541,7 +2541,7 @@ public class gameCard : OCGobject
if
(
ballChain
!=
null
)
{
del_all_decoration_by_string
(
"chaining"
);
Vector3
pos
=
ui_h
elper
.
get_close
(
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
Vector3
pos
=
UIH
elper
.
get_close
(
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
if
(
Program
.
I
().
setting
.
setting
.
Vchain
.
value
==
true
)
{
MonoBehaviour
.
Destroy
((
GameObject
)
MonoBehaviour
.
Instantiate
(
Program
.
I
().
mod_ocgcore_cs_end
,
pos
,
Quaternion
.
identity
),
5f
);
...
...
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
43cb69e0
...
...
@@ -4923,7 +4923,7 @@ public class Ocgcore : ServantWithCardDescription
UIHelper
.
playSound
(
"addcounter"
,
1
);
//if (Program.YGOPro1 == false)
{
Vector3
pos
=
ui_h
elper
.
get_close
(
card
.
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
Vector3
pos
=
UIH
elper
.
get_close
(
card
.
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
MonoBehaviour
.
Destroy
((
GameObject
)
MonoBehaviour
.
Instantiate
(
Program
.
I
().
mod_ocgcore_cs_end
,
pos
,
Quaternion
.
identity
),
5f
);
}
}
...
...
@@ -4944,7 +4944,7 @@ public class Ocgcore : ServantWithCardDescription
UIHelper
.
playSound
(
"removecounter"
,
1
);
//if (Program.YGOPro1 == false)
{
Vector3
pos
=
ui_h
elper
.
get_close
(
card
.
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
Vector3
pos
=
UIH
elper
.
get_close
(
card
.
gameObject
.
transform
.
position
,
Program
.
camera_game_main
,
5
);
MonoBehaviour
.
Destroy
((
GameObject
)
MonoBehaviour
.
Instantiate
(
Program
.
I
().
mod_ocgcore_cs_end
,
pos
,
Quaternion
.
identity
),
5f
);
}
}
...
...
Assets/SibylSystem/Servant.cs
View file @
43cb69e0
...
...
@@ -655,7 +655,7 @@ public class Servant
sp
.
width
=
470
;
for
(
int
i
=
0
;
i
<
options
.
Count
;
i
++)
{
Vector2
v
=
ui_h
elper
.
get_hang_lie
(
i
,
5
);
Vector2
v
=
UIH
elper
.
get_hang_lie
(
i
,
5
);
float
hang
=
v
.
x
;
float
lie
=
v
.
y
;
GameObject
btn
=
create
...
...
Assets/old/UiverseAssests/loader.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: f52930133f54dd446bd23d432f0b4332
folderAsset: yes
timeCreated: 1469182564
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/Delegater.cs
deleted
100644 → 0
View file @
ffb143dc
//using UnityEngine;
//using System.Collections;
//public class Delegater : MonoBehaviour
//{
// public CLIENT_SERVANT_OCGCORE.refresh_function f;
// // Use this for initialization
// void Start () {
// }
// public void function()
// {
// if (f != null) f();
// }
// // Update is called once per frame
// void Update () {
// }
//}
Assets/old/UiverseAssests/loader/Delegater.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: e0685e730c8d7864e92f6cca605c4f52
timeCreated: 1480605664
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs
deleted
100644 → 0
View file @
ffb143dc
using
System.IO
;
class
TXT_DEBUGER_ruined
{
public
static
void
debug
(
string
raw
)
{
FileStream
fs
=
new
FileStream
(
"log.txt"
,
FileMode
.
Append
);
StreamWriter
sw
=
new
StreamWriter
(
fs
);
sw
.
Write
(
raw
+
"\n"
);
sw
.
Flush
();
sw
.
Close
();
fs
.
Close
();
}
}
Assets/old/UiverseAssests/loader/TXT_DEBUGER.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: 1d455ff0e7866fd44abf7aca88d2ffbc
timeCreated: 1470044743
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/card_string_helper.cs
deleted
100644 → 0
View file @
ffb143dc
This diff is collapsed.
Click to expand it.
Assets/old/UiverseAssests/loader/card_string_helper.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: c348bd288e8db2d4d8ea0455b2c6a2e1
timeCreated: 1480605661
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/loader.cs
deleted
100644 → 0
View file @
ffb143dc
This diff is collapsed.
Click to expand it.
Assets/old/UiverseAssests/loader/loader.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: 89103720b5148e84a8ebeb6a8372af4a
timeCreated: 1480605654
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/picture_loader.cs
deleted
100644 → 0
View file @
ffb143dc
This diff is collapsed.
Click to expand it.
Assets/old/UiverseAssests/loader/picture_loader.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: 7c2075ecc16bdb54b917575d16794398
timeCreated: 1480605653
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/string_reader.cs
deleted
100644 → 0
View file @
ffb143dc
using
System
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
string_reader
{
class
string_hash
{
public
string
father
=
""
;
public
int
id
=
0
;
public
string
content
=
""
;
}
List
<
string_hash
>
strs
=
new
List
<
string_hash
>();
public
int
get_int
(
string
str
)
{
int
return_value
=
0
;
if
(
str
.
Length
>
2
&&
str
.
Substring
(
0
,
2
)==
"0x"
){
return_value
=
Convert
.
ToInt32
(
str
,
16
);
}
else
{
return_value
=
Int32
.
Parse
(
str
);
}
return
return_value
;
}
public
string_reader
(
string
path
)
{
string
text
=
System
.
IO
.
File
.
ReadAllText
(
path
);
string
st
=
text
.
Replace
(
"\r"
,
""
);
string
[]
lines
=
st
.
Split
(
new
string
[]
{
"\n"
},
StringSplitOptions
.
RemoveEmptyEntries
);
foreach
(
string
line
in
lines
)
{
if
(
line
.
Length
>
1
&&
line
.
Substring
(
0
,
1
)==
"!"
)
{
string
[]
mats
=
line
.
Substring
(
1
,
line
.
Length
-
1
).
Split
(
new
string
[]
{
" "
},
StringSplitOptions
.
RemoveEmptyEntries
);
if
(
mats
.
Length
>
2
)
{
string_hash
a
=
new
string_hash
();
a
.
father
=
mats
[
0
];
try
{
a
.
id
=
get_int
(
mats
[
1
]);
}
catch
(
Exception
e
){
Debug
.
Log
(
e
);
}
a
.
content
=
mats
[
2
];
strs
.
Add
(
a
);
if
(
a
.
id
==
1160
)
{
Debug
.
Log
(
a
.
content
);
}
}
}
}
}
public
string
get
(
string
father
,
int
id
)
{
string
re
=
""
;
foreach
(
string_hash
s
in
strs
)
{
if
(
s
.
father
==
father
&&
s
.
id
==
id
){
re
=
s
.
content
;
}
}
return
re
;
}
}
Assets/old/UiverseAssests/loader/string_reader.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: a11211d5ee383a8479ecca7d7e220cdf
timeCreated: 1480605656
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/old/UiverseAssests/loader/ui_helper.cs
deleted
100644 → 0
View file @
ffb143dc
using
System
;
using
System.IO
;
using
UnityEngine
;
public
class
ui_helper
{
public
static
Vector2
get_hang_lie
(
int
index
,
int
meihangdegeshu
)
{
Vector2
return_value
=
Vector2
.
zero
;
return_value
.
x
=
(
int
)
index
/
meihangdegeshu
;
return_value
.
y
=
index
%
meihangdegeshu
;
return
return_value
;
}
public
static
int
get_zuihouyihangdegeshu
(
int
zongshu
,
int
meihangdegeshu
)
{
int
re
=
0
;
re
=
zongshu
%
meihangdegeshu
;
if
(
re
==
0
)
{
re
=
meihangdegeshu
;
}
return
re
;
}
public
static
bool
get_shifouzaizuihouyihang
(
int
zongshu
,
int
meihangdegeshu
,
int
index
)
{
return
(
int
)((
index
)
/
meihangdegeshu
)
==
(
int
)(
zongshu
/
meihangdegeshu
);
}
public
static
int
get_zonghangshu
(
int
zongshu
,
int
meihangdegeshu
)
{
return
((
int
)(
zongshu
-
1
)
/
meihangdegeshu
)
+
1
;
}
public
static
Vector3
get_close
(
Vector3
input_vector
,
Camera
cam
,
float
l
)
{
Vector3
o
=
Vector3
.
zero
;
Vector3
scr
=
cam
.
WorldToScreenPoint
(
input_vector
);
scr
.
z
-=
l
;
o
=
cam
.
ScreenToWorldPoint
(
scr
);
return
o
;
}
public
static
Texture2D
get_rand_face
()
{
DirectoryInfo
TheFolder
=
new
DirectoryInfo
(
"face"
);
FileInfo
[]
fileInfo
=
TheFolder
.
GetFiles
();
FileInfo
NextFile
;
Texture2D
tex
=
new
Texture2D
(
400
,
600
);
if
(
fileInfo
.
Length
>
0
)
{
NextFile
=
fileInfo
[
UnityEngine
.
Random
.
Range
(
0
,
fileInfo
.
Length
)];
byte
[]
data
;
using
(
FileStream
file
=
new
FileStream
(
NextFile
.
FullName
,
FileMode
.
Open
,
FileAccess
.
Read
))
{
file
.
Seek
(
0
,
SeekOrigin
.
Begin
);
data
=
new
byte
[
file
.
Length
];
file
.
Read
(
data
,
0
,
(
int
)
file
.
Length
);
}
tex
.
LoadImage
(
data
);
}
return
tex
;
}
}
Assets/old/UiverseAssests/loader/ui_helper.cs.meta
deleted
100644 → 0
View file @
ffb143dc
fileFormatVersion: 2
guid: d53d6189fd0c71342a84342e7dc83c27
timeCreated: 1480605664
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment