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
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
赤子奈落
YGOProUnity_V2
Commits
592eaf86
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
Show 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
private
static
void
ProcessingCardFeature
(
PictureResource
pic
)
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
bool
EightEdition
=
false
;
BitmapHelper
bitmap
=
getCloseup
(
pic
);
if
(
bitmap
!=
null
)
...
...
@@ -414,11 +418,8 @@ public class GameTextureManager
}
caculateK
(
pic
);
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
else
{
var
data
=
getPicture
(
pic
,
out
EightEdition
);
...
...
@@ -435,11 +436,8 @@ public class GameTextureManager
pic
.
hashed_data
[
w
,
h
,
3
]
=
0
;
}
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
else
{
MemoryStream
stream
=
new
MemoryStream
(
data
);
...
...
@@ -472,13 +470,10 @@ public class GameTextureManager
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
);
}
}
}
}
private
static
void
caculateK
(
PictureResource
pic
)
{
...
...
@@ -670,6 +665,10 @@ public class GameTextureManager
private
static
void
ProcessingVerticleDrawing
(
PictureResource
pic
)
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
var
bitmap
=
getCloseup
(
pic
);
if
(
bitmap
==
null
)
{
...
...
@@ -740,11 +739,8 @@ public class GameTextureManager
caculateK
(
pic
);
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
private
static
void
softVtype
(
PictureResource
pic
,
float
si
)
{
...
...
@@ -798,16 +794,18 @@ public class GameTextureManager
private
static
void
ProcessingCardPicture
(
PictureResource
pic
)
{
if
(
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
return
;
}
bool
EightEdition
;
var
data
=
getPicture
(
pic
,
out
EightEdition
);
if
(
data
.
Length
>
0
)
{
pic
.
data
=
data
;
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
else
{
if
(
pic
.
code
>
0
)
...
...
@@ -818,12 +816,9 @@ public class GameTextureManager
{
pic
.
u_data
=
myBack
;
}
if
(!
loadedList
.
ContainsKey
(
hashPic
(
pic
.
code
,
pic
.
type
)))
{
loadedList
.
Add
(
hashPic
(
pic
.
code
,
pic
.
type
),
pic
);
}
}
}
private
static
UInt64
hashPic
(
long
code
,
GameTextureType
type
)
{
...
...
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