Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
SK
MDPro3
Commits
a3c4ef1f
Commit
a3c4ef1f
authored
Mar 18, 2026
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix and reduce GC in InterString.cs
parent
259ec551
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
Assets/Scripts/MDPro3/Duel/CardDescription.cs
Assets/Scripts/MDPro3/Duel/CardDescription.cs
+1
-4
Assets/Scripts/MDPro3/Helper/InterString.cs
Assets/Scripts/MDPro3/Helper/InterString.cs
+4
-2
Assets/Scripts/MDPro3/UI/ElementObjectManager/CardInfoManager.cs
...Scripts/MDPro3/UI/ElementObjectManager/CardInfoManager.cs
+1
-1
Assets/Scripts/MDPro3/UI/UIWidget/Deck/CardInfoDetail.cs
Assets/Scripts/MDPro3/UI/UIWidget/Deck/CardInfoDetail.cs
+1
-1
Assets/Scripts/MDPro3/UI/UIWidget/UIWidgetCardBase.cs
Assets/Scripts/MDPro3/UI/UIWidget/UIWidgetCardBase.cs
+1
-1
No files found.
Assets/Scripts/MDPro3/Duel/CardDescription.cs
View file @
a3c4ef1f
using
DG.Tweening
;
using
DG.Tweening
;
using
System.Collections
;
using
System.Collections.Generic
;
using
TMPro
;
using
TMPro
;
using
UnityEngine
;
using
UnityEngine
;
using
UnityEngine.UI
;
using
UnityEngine.UI
;
using
YgomSystem.ElementSystem
;
using
YgomSystem.ElementSystem
;
using
MDPro3.Duel.YGOSharp
;
using
MDPro3.Duel.YGOSharp
;
using
static
MDPro3
.
CardRenderer
;
using
static
MDPro3
.
Servant
.
OcgCore
;
using
static
MDPro3
.
Servant
.
OcgCore
;
using
MDPro3.Utility
;
using
MDPro3.Utility
;
using
MDPro3.UI
;
using
MDPro3.UI
;
...
@@ -317,7 +314,7 @@ namespace MDPro3
...
@@ -317,7 +314,7 @@ namespace MDPro3
manager
.
GetElement
(
"PropertyMonster"
).
SetActive
(
false
);
manager
.
GetElement
(
"PropertyMonster"
).
SetActive
(
false
);
manager
.
GetElement
(
"PropertySpell"
).
SetActive
(
true
);
manager
.
GetElement
(
"PropertySpell"
).
SetActive
(
true
);
manager
.
GetElement
<
Image
>(
"SpellType"
).
sprite
=
TextureManager
.
GetSpellTrapTypeIcon
(
data
);
manager
.
GetElement
<
Image
>(
"SpellType"
).
sprite
=
TextureManager
.
GetSpellTrapTypeIcon
(
data
);
manager
.
GetElement
<
Text
>(
"TextSpellType"
).
text
=
data
.
GetSpellTrapType
(
true
);
manager
.
GetElement
<
Text
>(
"TextSpellType"
).
text
=
data
.
GetSpellTrapType
();
}
}
RefreshLimitIcon
(
data
.
Id
);
RefreshLimitIcon
(
data
.
Id
);
}
}
...
...
Assets/Scripts/MDPro3/Helper/InterString.cs
View file @
a3c4ef1f
...
@@ -25,8 +25,8 @@ namespace MDPro3
...
@@ -25,8 +25,8 @@ namespace MDPro3
public
static
void
Initialize
()
public
static
void
Initialize
()
{
{
translations
.
Clear
();
translations
.
Clear
();
translationsForRender
=
new
Dictionary
<
string
,
string
>
();
translationsForRender
.
Clear
();
translationsForPrerelease
=
new
Dictionary
<
string
,
string
>
();
translationsForPrerelease
.
Clear
();
path
=
Program
.
PATH_LOCALES
+
Language
.
GetConfig
()
+
PATH_CONF_FILE
;
path
=
Program
.
PATH_LOCALES
+
Language
.
GetConfig
()
+
PATH_CONF_FILE
;
if
(!
File
.
Exists
(
path
))
if
(!
File
.
Exists
(
path
))
...
@@ -41,6 +41,7 @@ namespace MDPro3
...
@@ -41,6 +41,7 @@ namespace MDPro3
else
else
{
{
pathForRender
=
Program
.
PATH_LOCALES
+
Language
.
GetCardConfig
()
+
PATH_CONF_FILE
;
pathForRender
=
Program
.
PATH_LOCALES
+
Language
.
GetCardConfig
()
+
PATH_CONF_FILE
;
translationsForRender
=
new
();
if
(!
File
.
Exists
(
pathForRender
))
if
(!
File
.
Exists
(
pathForRender
))
File
.
Create
(
pathForRender
).
Close
();
File
.
Create
(
pathForRender
).
Close
();
InitializeContent
(
File
.
ReadAllText
(
pathForRender
),
1
);
InitializeContent
(
File
.
ReadAllText
(
pathForRender
),
1
);
...
@@ -59,6 +60,7 @@ namespace MDPro3
...
@@ -59,6 +60,7 @@ namespace MDPro3
else
else
{
{
pathForPrerelease
=
Program
.
PATH_LOCALES
+
Language
.
GetPrereleaseConfig
()
+
PATH_CONF_FILE
;
pathForPrerelease
=
Program
.
PATH_LOCALES
+
Language
.
GetPrereleaseConfig
()
+
PATH_CONF_FILE
;
translationsForPrerelease
=
new
();
if
(!
File
.
Exists
(
pathForPrerelease
))
if
(!
File
.
Exists
(
pathForPrerelease
))
File
.
Create
(
pathForPrerelease
).
Close
();
File
.
Create
(
pathForPrerelease
).
Close
();
InitializeContent
(
File
.
ReadAllText
(
pathForPrerelease
),
2
);
InitializeContent
(
File
.
ReadAllText
(
pathForPrerelease
),
2
);
...
...
Assets/Scripts/MDPro3/UI/ElementObjectManager/CardInfoManager.cs
View file @
a3c4ef1f
...
@@ -419,7 +419,7 @@ namespace MDPro3.UI
...
@@ -419,7 +419,7 @@ namespace MDPro3.UI
SpellTrapType
.
SetActive
(
true
);
SpellTrapType
.
SetActive
(
true
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
TextSpellTrapType
.
text
TextSpellTrapType
.
text
=
data
.
GetSpellTrapType
(
true
);
=
data
.
GetSpellTrapType
();
IconAtk
.
gameObject
.
SetActive
(
false
);
IconAtk
.
gameObject
.
SetActive
(
false
);
IconDef
.
gameObject
.
SetActive
(
false
);
IconDef
.
gameObject
.
SetActive
(
false
);
...
...
Assets/Scripts/MDPro3/UI/UIWidget/Deck/CardInfoDetail.cs
View file @
a3c4ef1f
...
@@ -410,7 +410,7 @@ namespace MDPro3.UI
...
@@ -410,7 +410,7 @@ namespace MDPro3.UI
ParamatorAreaBottom
.
SetActive
(
false
);
ParamatorAreaBottom
.
SetActive
(
false
);
SpellTrapType
.
SetActive
(
true
);
SpellTrapType
.
SetActive
(
true
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
TextSpellTrapType
.
text
=
data
.
GetSpellTrapType
(
true
);
TextSpellTrapType
.
text
=
data
.
GetSpellTrapType
();
PoolGroup
.
SetParent
(
ParamatorAreaTop
.
transform
,
false
);
PoolGroup
.
SetParent
(
ParamatorAreaTop
.
transform
,
false
);
}
}
...
...
Assets/Scripts/MDPro3/UI/UIWidget/UIWidgetCardBase.cs
View file @
a3c4ef1f
...
@@ -428,7 +428,7 @@ namespace MDPro3.UI
...
@@ -428,7 +428,7 @@ namespace MDPro3.UI
{
{
SpellTrapType
.
SetActive
(
true
);
SpellTrapType
.
SetActive
(
true
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
IconSpellTrapType
.
sprite
=
TextureManager
.
container
.
GetCardSpellTrapTypeIcon
(
data
);
TextSpellTrapType
.
text
=
data
.
GetSpellTrapType
(
true
);
TextSpellTrapType
.
text
=
data
.
GetSpellTrapType
();
IconAtk
.
gameObject
.
SetActive
(
false
);
IconAtk
.
gameObject
.
SetActive
(
false
);
IconDef
.
gameObject
.
SetActive
(
false
);
IconDef
.
gameObject
.
SetActive
(
false
);
...
...
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