Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
civilization-iii
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
true-history-committee
civilization-iii
Commits
5af6b18e
Commit
5af6b18e
authored
Mar 03, 2018
by
redsuncore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse Portrait,- UnitName Parsing(WIP)
유닛이름 파싱, 초상화 정리중. (WIP)
parent
3f4fa0b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
1 deletion
+129
-1
Draw_ending.png
Assets/Resources/Endings/Draw_ending.png
+0
-0
Draw_ending.png.meta
Assets/Resources/Endings/Draw_ending.png.meta
+97
-0
GameManager.cs
Assets/Scripts/GameManager.cs
+31
-0
DepPrefab.cs
Assets/Scripts/Prefabs/DepPrefab.cs
+1
-1
No files found.
Assets/Resources/Endings/Draw_ending.png
0 → 100644
View file @
5af6b18e
This diff is collapsed.
Click to expand it.
Assets/Resources/Endings/Draw_ending.png.meta
0 → 100644
View file @
5af6b18e
fileFormatVersion: 2
guid: f907ce2fa1d053648b4fb3bc75f9f8f5
timeCreated: 1520016672
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/GameManager.cs
View file @
5af6b18e
...
@@ -408,6 +408,37 @@ public static class ProductionFactoryTraits
...
@@ -408,6 +408,37 @@ public static class ProductionFactoryTraits
}
}
return
result
;
return
result
;
}
}
public
static
string
GetFacPortName
(
CivModel
.
IProductionFactory
Factory
)
{
char
[]
sep
=
{
'.'
};
string
name
=
Factory
.
ToString
().
Split
(
sep
)[
2
];
string
result
;
switch
(
name
)
{
case
"PioneerProductionFactory"
:
result
=
"Pioneer"
;
break
;
case
"JediKnightProductionFactory"
:
result
=
"JediKnight"
;
break
;
case
"CityCenterProductionFactory"
:
result
=
"CityCenter"
;
break
;
case
"FakeKnightProductionFactory"
:
result
=
"JediKnight"
;
break
;
case
"FactoryBuildingProductionFactory"
:
result
=
"Factory"
;
break
;
case
"LaboratoryBuildingProductionFactory"
:
result
=
"Laboratory"
;
break
;
default
:
result
=
"unknown : "
+
name
;
break
;
}
return
result
;
}
public
static
string
GetName
(
CivModel
.
Unit
unit
)
public
static
string
GetName
(
CivModel
.
Unit
unit
)
{
{
char
[]
sep
=
{
'.'
};
char
[]
sep
=
{
'.'
};
...
...
Assets/Scripts/Prefabs/DepPrefab.cs
View file @
5af6b18e
...
@@ -36,7 +36,7 @@ public class DepPrefab : MonoBehaviour {
...
@@ -36,7 +36,7 @@ public class DepPrefab : MonoBehaviour {
public
GameObject
MakeItem
(
Production
prod
)
public
GameObject
MakeItem
(
Production
prod
)
{
{
string
nameofProduction
=
ProductionFactoryTraits
.
GetFac
tory
Name
(
prod
.
Factory
);
string
nameofProduction
=
ProductionFactoryTraits
.
GetFac
Port
Name
(
prod
.
Factory
);
unitPrt
.
sprite
=
Resources
.
Load
<
Sprite
>(
"Unit_portrait/"
+
nameofProduction
+
"_portrait"
);
unitPrt
.
sprite
=
Resources
.
Load
<
Sprite
>(
"Unit_portrait/"
+
nameofProduction
+
"_portrait"
);
foreach
(
Text
txt
in
textarguments
)
foreach
(
Text
txt
in
textarguments
)
{
{
...
...
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