forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TGUI] Prize Counter (ParadiseSS13#24079)
* PrizeCounterUI 1.0 Update PrizeCounter.scss Update prize_counter.dm UI work It just works * Image layout fix * Better names * Tooltip * Unused code and disable button * That's not necessary either * Search * Maybe that's all * Stack.Divider, wow, universal component * Rebuild * Rebuild * Turn off auto-update * Ooops * Code style * Rebuild * Ah... yes... rebuild * Ticket icon like on screenshot
- Loading branch information
Showing
9 changed files
with
321 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/datum/asset/spritesheet/prize_counter | ||
name = "prize_counter" | ||
|
||
/datum/asset/spritesheet/prize_counter/create_spritesheets() | ||
for(var/datum/prize_item/prize in GLOB.global_prizes.prizes) | ||
var/obj/item/prize_item = prize.typepath | ||
var/prize_icon = icon(icon = initial(prize_item.icon), icon_state = initial(prize_item.icon_state)) | ||
var/imgid = replacetext(replacetext("[prize_item]", "/obj/item/", ""), "/", "-") | ||
Insert(imgid, prize_icon) | ||
|
||
/datum/asset/spritesheet/prize_counter/ModifyInserted(icon/pre_asset) | ||
pre_asset.Scale(64, 64) | ||
return pre_asset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.