Sesu8642 / FeudalTactics

Strategy game with countless unique and challenging levels.
GNU General Public License v3.0
79 stars 20 forks source link

Adapt pixthulu-ui skin and make ImageButton have a background #45

Closed pserwylo closed 1 year ago

pserwylo commented 1 year ago

See additional README in the skin directory. It explains how I've used SkinComposer to import the existing skin and then re-export after making changes. I realise you mentioned you would look into this alter, but it seemed relatively straightforward to hack on for this change. Hopefully this will allow incremental tweaks to the UI until you get around to overhauling the skin completely. Or you can use this for the base of your further plans to redo the skin.

The end result is that the dice button now looks like this:

NOTE: This is a draft because it is built on #44. This also means the diff between this branch and master will look bigger until that is merged.

pserwylo commented 1 year ago

I should say, that I find it particularly difficult to get the SkinComposer .scmp file to include relative paths. For my own games, I ended up giving up and just leaving a generic /home/pete/code/GAME_NAME/skin/ path everywhere in the file, but I've tried my best to get it working with relative paths here. It may cause some issues when opening in SkinComposer for you, but hopefully you can see what the issue is if one arises and address it if need be.

Sesu8642 commented 1 year ago

I got some errors when I opened the project in Skin Composer. Moving the font files into the resources directory seemed to help. Any reason to keep them outside that directory?

Sesu8642 commented 1 year ago

Looks like I created come conflicts. I will deal with them.

Sesu8642 commented 1 year ago

The image button looks really good btw!