- [NEW] Es pot navegar entre habitacions pulsant el nombres de les vores
- [FIX] usar mouseClk() en el treeview - [FIX] Al crear nova habitació s¡obri la porta contraria en l'habitació des de la que se venia.
This commit is contained in:
@@ -375,7 +375,25 @@ namespace modules
|
||||
}
|
||||
|
||||
|
||||
draw::print2(room::getExit(XN), -2, 1, 1, TEAL, FONT_ZOOM_NONE);
|
||||
draw::print2(room::getExit(YN), -2, 38, 1, TEAL, FONT_ZOOM_NONE);
|
||||
draw::print2(room::getExit(XP), -2, 38, 28, TEAL, FONT_ZOOM_NONE);
|
||||
draw::print2(room::getExit(YP), -2, 1, 28, TEAL, FONT_ZOOM_NONE);
|
||||
draw::print2(room::getExit(ZP), -2, 19, 1, TEAL, FONT_ZOOM_NONE);
|
||||
draw::print2(room::getExit(ZN), -2, 19, 28, TEAL, FONT_ZOOM_NONE);
|
||||
|
||||
draw::print2(room::getCurrent(), -2, 4, 3, WHITE, FONT_ZOOM_BOTH);
|
||||
|
||||
if (input::mouseClk(1)) {
|
||||
const int mx = draw::getLocalX(input::mouseX());
|
||||
const int my = draw::getLocalY(input::mouseY());
|
||||
if (mx<32 && my<24) room::load(room::editor::refExit(XN), XP);
|
||||
if (mx>288 && my<24) room::load(room::editor::refExit(YN), YP);
|
||||
if (mx>288 && my>216) room::load(room::editor::refExit(XP), XN);
|
||||
if (mx<32 && my>216) room::load(room::editor::refExit(YP), YN);
|
||||
if (mx>144 && mx<176 && my<24) room::load(room::editor::refExit(ZP), ZN);
|
||||
if (mx>144 && mx<176 && my>216) room::load(room::editor::refExit(ZN), ZP);
|
||||
}
|
||||
|
||||
ui::start();
|
||||
|
||||
@@ -412,6 +430,7 @@ namespace modules
|
||||
const int mx = draw::getLocalX(input::mouseX());
|
||||
const int my = draw::getLocalY(input::mouseY());
|
||||
const bool btnDown = input::mouseBtn(1) || input::mouseBtn(3);
|
||||
const bool btnClk = input::mouseClk(1) || input::mouseClk(3);
|
||||
|
||||
if (mx>=0 && mx <=100 && my>=0 && my<=221)
|
||||
{
|
||||
@@ -449,7 +468,7 @@ namespace modules
|
||||
draw::color(LIGHT+BLUE);
|
||||
draw::fillrect(4, 2+line*9, 92, 9);
|
||||
}
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnDown) {
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnClk) {
|
||||
if (i == room::editor::getCurrentRoom()) {
|
||||
section = SECTION_ACTOR;
|
||||
} else {
|
||||
@@ -464,7 +483,7 @@ namespace modules
|
||||
}
|
||||
} else if (section==SECTION_ACTOR)
|
||||
{
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnDown) {
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnClk) {
|
||||
section = SECTION_ROOM;
|
||||
}
|
||||
|
||||
@@ -482,7 +501,7 @@ namespace modules
|
||||
draw::color(LIGHT+BLUE);
|
||||
draw::fillrect(4, 2+line*9, 92, 9);
|
||||
}
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnDown) {
|
||||
if ((mx>=2) && (mx<98) && (my>=2+line*9) && (my<2+9+line*9) && btnClk) {
|
||||
actor::select(act);
|
||||
section = SECTION_ACTOR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user