- [NEW] Esquemes de colors

This commit is contained in:
2024-07-02 18:20:16 +02:00
parent 33cfc7ee99
commit af6c5f43ef
4 changed files with 27 additions and 19 deletions

View File

@@ -373,9 +373,9 @@ bool game::loop()
draw::swapcol(1, WHITE+LIGHT);
actor::draw(actor::getPicked(), false);
const int col1 = 7+(room::getColor()-6)%5;
const int col2 = 7+(room::getColor()-5)%5;
const int col3 = 7+(room::getColor()-4)%5;
const int col1 = room::getColor(1);
const int col2 = room::getColor(2);
const int col3 = room::getColor(3);
draw::print2("a", 4, 26, col1, FONT_ZOOM_NONE);
draw::print2("b", 7, 26, col2, FONT_ZOOM_NONE);
draw::print2("c", 10, 26, col3, FONT_ZOOM_NONE);
@@ -385,13 +385,13 @@ bool game::loop()
draw::print2(actor::hero::getBoostRun()/2, 2, 9, 27, col2, FONT_ZOOM_NONE);
draw::setSource(draw::getSurface("objectes.gif"));
draw::swapcol(1, actor::hero::getSkills()&SKILL_SHOES ? WHITE : BLUE);
draw::swapcol(1, actor::hero::getSkills()&SKILL_SHOES ? col1 : col3);
draw::draw(276,166, 28, 22, 162, 0);
draw::swapcol(1, actor::hero::getSkills()&SKILL_PANTS ? WHITE : BLUE);
draw::swapcol(1, actor::hero::getSkills()&SKILL_PANTS ? col1 : col3);
draw::draw(250,183, 18, 23, 167, 22);
draw::swapcol(1, actor::hero::getSkills()&SKILL_GLOVES ? WHITE : BLUE);
draw::swapcol(1, actor::hero::getSkills()&SKILL_GLOVES ? col1 : col3);
draw::draw(222,200, 21, 22, 165, 45);
draw::swapcol(1, actor::hero::getSkills()&SKILL_BAG ? WHITE : BLUE);
draw::swapcol(1, actor::hero::getSkills()&SKILL_BAG ? col1 : col3);
draw::draw(279,200, 20, 25, 145, 41);
/*
print(0,0,input::mouseX());
@@ -586,7 +586,7 @@ switch (section)
ui::label("TEXTURES", 2, line, 96, 11, GRAY); line+=10;
changed |= btn_opt("COLOR", 2, line, room::editor::refColor(), {7, 8, 9, 10, 11}, {"PURPLE", "GREEN", "CYAN", "YELLOW", "WHITE"}, 47); //ui::label("COLOR", 2, line, 64, 11);
changed |= btn_opt("COLOR", 2, line, room::editor::refColor(), {0, 1, 2, 3, 4}, {"PURPLE", "GREEN", "CYAN", "YELLOW", "WHITE"}, 47); //ui::label("COLOR", 2, line, 64, 11);
//changed |= btn_small(64, line, room::editor::refColor(), 5, 11);
line += 10;
ui::label("FLOOR", 2, line, 48, 11);