playXP

서브 메뉴

Page. 1 / 21 [내 메뉴에 추가]
글쓰기
작성자 판밍
작성일 2017-03-08 10:28:16 KST 조회 3,094
제목
자원 UI, 자원 아이콘 변경하기

제가 궁금한것 이것 저것 찾다가 맵스터에서 찾은 것들을 긁어다가 남깁니다.

매번 까먹을거 같아서;

 

출처 : https://www.sc2mapster.com/forums/resources/tutorials/179261-texture-how-to-change-resource-icon 

 

원리 : 해당 경로에 있는 이미지를 원하는 이미지로 바꿔주시면 됩니다.

 

예를 들어 테란 광물의 이미지를 다른 이미지로 바꾸고 싶다면

Assets\Textuers\icon-mineral-terran.dds의 이미지를 내보내기 해서 원하는 이미지로 편집한 다음

가져오기를 통해 똑같은 경로에 (Assets\Textuers\icon-mineral-terran.dds) 가지고 오면 됩니다.

 

Resource paths have changed


The resource paths in the tutorial below have changed:

Minerals: 

  • UI/ResourceIconNoBackground0
  • UI/ResourceIconNoBackground0_Prot
  • UI/ResourceIconNoBackground0_Terr
  • UI/ResourceIconNoBackground0_Zerg

Gas: 

  • UI/ResourceIconNoBackground1
  • UI/ResourceIconNoBackground1_Prot
  • UI/ResourceIconNoBackground1_Terr
  • UI/ResourceIconNoBackground1_Zerg

others: 

  • UI/ResourceIconNoBackground2
  • UI/ResourceIconNoBackground2_Prot
  • UI/ResourceIconNoBackground2_Terr
  • UI/ResourceIconNoBackground2_Zerg
  • UI/ResourceIconNoBackground3
  • UI/ResourceIconNoBackground3_Prot
  • UI/ResourceIconNoBackground3_Terr
  • UI/ResourceIconNoBackground3_Zerg

Best regards,
Helral.

And now back to the tutorial by h34dl4g.

Information: First of all, I have to admit that my English is not the best so hope you guys are blind enough to miss the mistakes.
The reason why I'm writing this tutorial is rather simple: I nearly killed myself, trying to change the resource icon since nearly no one knows how to change them. Even in the German forums nobody knew it, but we have to admit that blizzard failed at forgetting the implementation in the data editor.

How do we change the Icon?-
Since the Data-Editor doesn't have to feature to change the resource icons, we have to use workarounds (what this tutorial is about).

There are two ways to change the resource icon:-
1. We change the file-paths our game searches for.
2. We import our new icons and replace the old ones by using the same file-path.

Lets forget the second way since it doesn't work probably.

How to change the file-paths our game searches for?-
We have to create a new text-file with the name "Assets"
What is this text-file about?
It saves the file-paths our game searches for, when creating the UI-icons in the game.

Small list of known UI-Textures:-
UI/ResourceIconEnergy=Assets\Textures\icon-energy-terran.dds
UI/ResourceIconEnergy_Prot=Assets\Textures\icon-energy-protoss.dds
UI/ResourceIconEnergy_Terr=Assets\Textures\icon-energy-terran.dds
UI/ResourceIconEnergy_Zerg=Assets\Textures\icon-energy-zerg.dds
UI/ResourceIconLife=Assets\Textures\icon-health-terran.dds
UI/ResourceIconLife_Prot=Assets\Textures\icon-health-protoss.dds
UI/ResourceIconLife_Terr=Assets\Textures\icon-health-terran.dds
UI/ResourceIconLife_Zerg=Assets\Textures\icon-health-zerg.dds
UI/ResourceIconShields=Assets\Textures\icon-shields.dds
UI/ResourceIconSupply=Assets\Textures\icon-supply-terran.dds
UI/ResourceIconSupply_Prot=Assets\Textures\icon-supply-protoss.dds
UI/ResourceIconSupply_Terr=Assets\Textures\icon-supply-terran.dds
UI/ResourceIconSupply_Zerg=Assets\Textures\icon-supply-zerg.dds
UI/ResourceIconTime=Assets\Textures\icon-time-terran.dds
UI/ResourceIconTime_Terr=Assets\Textures\icon-time-terran.dds
UI/ResourceIconTime_Prot=Assets\Textures\icon-time-protoss.dds
UI/ResourceIconTime_Zerg=Assets\Textures\icon-time-zerg.dds
UI/ResourceIcon0=Assets\Textures\icon-mineral-terran.dds
UI/ResourceIcon0_Prot=Assets\Textures\icon-mineral-protoss.dds
UI/ResourceIcon0_Terr=Assets\Textures\icon-mineral-terran.dds
UI/ResourceIcon0_Zerg=Assets\Textures\icon-mineral-zerg.dds
UI/ResourceIcon1=Assets\Textures\icon-gas-terran.dds
UI/ResourceIcon1_Prot=Assets\Textures\icon-gas-protoss.dds
UI/ResourceIcon1_Terr=Assets\Textures\icon-gas-terran.dds
UI/ResourceIcon1_Zerg=Assets\Textures\icon-gas-zerg.dds
UI/ResourceIcon2=Assets\Textures\icon-energy-terran.dds
UI/ResourceIcon2_Prot=Assets\Textures\icon-energy-protoss.dds
UI/ResourceIcon2_Terr=Assets\Textures\icon-energy-terran.dds
UI/ResourceIcon2_Zerg=Assets\Textures\icon-energy-zerg.dds
UI/ResourceIcon3=Assets\Textures\icon-health-terran.dds
UI/ResourceIcon3_Prot=Assets\Textures\icon-health-protoss.dds
UI/ResourceIcon3_Terr=Assets\Textures\icon-health-terran.dds
UI/ResourceIcon3_Zerg=Assets\Textures\icon-health-zerg.dds

Default Starcraft2 "Assets.txt" can be found in "patch.sc2archive/mods/liberty.sc2mod/base.sc2data/GameData/Assets.txt"
You can open .sc2archive files using any MPQ editor.

But since I don't want to change all of these textures I picked three of them (Mineral, Gas, Supply):UI/ResourceIconSupply_Prot=Assets\Textures\icon-supply-protoss.dds
UI/ResourceIconSupply_Terr=Assets\Textures\icon-supply-terran.dds
UI/ResourceIconSupply_Zerg=Assets\Textures\icon-supply-zerg.dds
UI/ResourceIcon0_Prot=Assets\Textures\icon-mineral-protoss.dds
UI/ResourceIcon0_Terr=Assets\Textures\icon-mineral-terran.dds
UI/ResourceIcon0_Zerg=Assets\Textures\icon-mineral-zerg.dds
UI/ResourceIcon1_Prot=Assets\Textures\icon-gas-protoss.dds
UI/ResourceIcon1_Terr=Assets\Textures\icon-gas-terran.dds
UI/ResourceIcon1_Zerg=Assets\Textures\icon-gas-zerg.dds

As you can see, we have three paths for Minerals, three paths for Gas and three paths for supply.
Three for each race.

Now that we chose our 9 paths (3 resources), we have to modify the path so that we can use custom textures (icons) on them:
For example (mineral):

Original file-path:-
UI/ResourceIcon0_Prot=Assets\Textures\icon-mineral-protoss.dds
UI/ResourceIcon0_Terr=Assets\Textures\icon-mineral-terran.dds
UI/ResourceIcon0_Zerg=Assets\Textures\icon-mineral-zerg.dds

Our file-path (custom):-
UI/ResourceIcon0_Prot=Assets\Textures\icon-custommineralicon-protoss.dds
UI/ResourceIcon0_Terr=Assets\Textures\icon-custommineralicon-terran.dds
UI/ResourceIcon0_Zerg=Assets\Textures\icon-custommineralicon-zerg.dds

 

출처에 들어가면 예제맵과 이미지들이 옛날에는 있었던 모양이나 지금은 다 짤려서 없어요

지속적인 허위 신고시 신고자가 제재를 받을 수 있습니다.
신고 사유를 입력하십시오:

발도장 찍기
등록된 댓글이 없습니다.
댓글을 등록하려면 로그인 하셔야 합니다. 로그인 하시려면 [여기]를 클릭하십시오.
롤토체스 TFT - 롤체지지 LoLCHESS.GG
소환사의 협곡부터 칼바람, 우르프까지 - 포로지지 PORO.GG
배그 전적검색은 닥지지(DAK.GG)에서 가능합니다
  • (주)플레이엑스피
  • 대표: 윤석재
  • 사업자등록번호: 406-86-00726

© PlayXP Inc. All Rights Reserved.