Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
MyCard
YGOProUnity_V2
Commits
592eaf86
You need to sign in or sign up before continuing.
Commit
592eaf86
authored
Aug 22, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix texture loadedList
parent
ab7b6822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
24 deletions
+19
-24
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+19
-24
No files found.
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
592eaf86
...
@@ -381,6 +381,10 @@ public class GameTextureManager
...
@@ -381,6 +381,10 @@ public class GameTextureManager
private
static
void
ProcessingCardFeature
(
PictureResource
pic
)
private
static
void
ProcessingCardFeature
(
PictureResource
pic
)
{
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
bool
EightEdition
=
false
;
bool
EightEdition
=
false
;
BitmapHelper
bitmap
=
getCloseup
(
pic
);
BitmapHelper
bitmap
=
getCloseup
(
pic
);
if
(
bitmap
!=
null
)
if
(
bitmap
!=
null
)
...
@@ -414,10 +418,7 @@ public class GameTextureManager
...
@@ -414,10 +418,7 @@ public class GameTextureManager
}
}
caculateK
(
pic
);
caculateK
(
pic
);
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
else
else
{
{
...
@@ -435,10 +436,7 @@ public class GameTextureManager
...
@@ -435,10 +436,7 @@ public class GameTextureManager
pic
.
hashed_data
[
w
,
h
,
3
]
=
0
;
pic
.
hashed_data
[
w
,
h
,
3
]
=
0
;
}
}
}
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
else
else
{
{
...
@@ -472,10 +470,7 @@ public class GameTextureManager
...
@@ -472,10 +470,7 @@ public class GameTextureManager
pic
.
hashed_data
[
w
,
h
,
3
]
=
a
*
0.7f
;
pic
.
hashed_data
[
w
,
h
,
3
]
=
a
*
0.7f
;
}
}
}
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
}
}
}
}
...
@@ -670,6 +665,10 @@ public class GameTextureManager
...
@@ -670,6 +665,10 @@ public class GameTextureManager
private
static
void
ProcessingVerticleDrawing
(
PictureResource
pic
)
private
static
void
ProcessingVerticleDrawing
(
PictureResource
pic
)
{
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
var
bitmap
=
getCloseup
(
pic
);
var
bitmap
=
getCloseup
(
pic
);
if
(
bitmap
==
null
)
if
(
bitmap
==
null
)
{
{
...
@@ -740,10 +739,7 @@ public class GameTextureManager
...
@@ -740,10 +739,7 @@ public class GameTextureManager
caculateK
(
pic
);
caculateK
(
pic
);
}
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
private
static
void
softVtype
(
PictureResource
pic
,
float
si
)
private
static
void
softVtype
(
PictureResource
pic
,
float
si
)
...
@@ -798,15 +794,17 @@ public class GameTextureManager
...
@@ -798,15 +794,17 @@ public class GameTextureManager
private
static
void
ProcessingCardPicture
(
PictureResource
pic
)
private
static
void
ProcessingCardPicture
(
PictureResource
pic
)
{
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
bool
EightEdition
;
bool
EightEdition
;
var
data
=
getPicture
(
pic
,
out
EightEdition
);
var
data
=
getPicture
(
pic
,
out
EightEdition
);
if
(
data
.
Length
>
0
)
if
(
data
.
Length
>
0
)
{
{
pic
.
data
=
data
;
pic
.
data
=
data
;
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
else
else
{
{
...
@@ -818,10 +816,7 @@ public class GameTextureManager
...
@@ -818,10 +816,7 @@ public class GameTextureManager
{
{
pic
.
u_data
=
myBack
;
pic
.
u_data
=
myBack
;
}
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
}
}
...
...
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