colorize hp and sp in casting menu

This commit is contained in:
2025-01-20 10:17:01 -06:00
parent daecca4abe
commit 4260d41bf6
3 changed files with 14 additions and 12 deletions

View File

@@ -23,18 +23,18 @@
<text name='pc4' top='156' left='88' width='122' height='16'/>
<text name='pc5' top='180' left='88' width='122' height='16'/>
<text name='pc6' top='204' left='88' width='122' height='16'/>
<text name='hp1' top='85' left='265' width='32' height='16'/>
<text name='hp2' top='109' left='265' width='32' height='16'/>
<text name='hp3' top='133' left='265' width='32' height='16'/>
<text name='hp4' top='156' left='265' width='32' height='16'/>
<text name='hp5' top='181' left='265' width='32' height='16'/>
<text name='hp6' top='205' left='265' width='32' height='16'/>
<text name='sp1' top='85' left='304' width='32' height='16'/>
<text name='sp2' top='109' left='304' width='32' height='16'/>
<text name='sp3' top='133' left='304' width='32' height='16'/>
<text name='sp4' top='156' left='304' width='32' height='16'/>
<text name='sp5' top='181' left='304' width='32' height='16'/>
<text name='sp6' top='205' left='304' width='32' height='16'/>
<text name='hp1' top='85' left='265' width='32' height='16' colour='red'/>
<text name='hp2' top='109' left='265' width='32' height='16' colour='red'/>
<text name='hp3' top='133' left='265' width='32' height='16' colour='red'/>
<text name='hp4' top='156' left='265' width='32' height='16' colour='red'/>
<text name='hp5' top='181' left='265' width='32' height='16' colour='red'/>
<text name='hp6' top='205' left='265' width='32' height='16' colour='red'/>
<text name='sp1' top='85' left='304' width='32' height='16' colour='light_blue'/>
<text name='sp2' top='109' left='304' width='32' height='16' colour='light_blue'/>
<text name='sp3' top='133' left='304' width='32' height='16' colour='light_blue'/>
<text name='sp4' top='156' left='304' width='32' height='16' colour='light_blue'/>
<text name='sp5' top='181' left='304' width='32' height='16' colour='light_blue'/>
<text name='sp6' top='205' left='304' width='32' height='16' colour='light_blue'/>
<text name='feedback' framed='true' top='400' left='30' width='186' height='16'>Pick spell to cast.</text>
<led name='spell1' state='off' top='247' left='14'/>
<led name='spell2' state='off' top='261' left='14'/>

View File

@@ -29,6 +29,7 @@ std::map<std::string,sf::Color> colour_map = {
{"pink", Colours::PINK},
{"yellow", Colours::YELLOW},
{"orange", Colours::ORANGE},
{"light_blue", Colours::LIGHT_BLUE},
{"shadow", Colours::SHADOW},
{"title_blue", Colours::TITLE_BLUE},
{"navy", Colours::NAVY},

View File

@@ -57,6 +57,7 @@ namespace Colours {
const sf::Color PINK { 0xff, 0x00, 0x99};
const sf::Color YELLOW { 0xff, 0xff, 0x31};
const sf::Color ORANGE { 0xff, 0x80, 0x00};
const sf::Color LIGHT_BLUE { 0xad, 0xd8, 0xe6 }; // Spell points on dark background
// Text colours for shopping / talking
// TODO: The Windows version appears to use completely different colours?
const sf::Color SHADOW { 0x00, 0x00, 0x68}; // formerly c[3] QD colour = {0,0,26623} (shop/character name shadow, shop subtitle)