- Treballant en el editor de posició i tamany del bitmap
This commit is contained in:
@@ -455,8 +455,8 @@ namespace modules
|
||||
|
||||
draw::setViewport(0, 15, 100, 222);
|
||||
|
||||
const int mx = draw::getLocalX(input::mouseX());
|
||||
const int my = draw::getLocalY(input::mouseY());
|
||||
int mx = draw::getLocalX(input::mouseX());
|
||||
int my = draw::getLocalY(input::mouseY());
|
||||
const bool btnDown = input::mouseBtn(1) || input::mouseBtn(3);
|
||||
const bool btnClk = input::mouseClk(1) || input::mouseClk(3);
|
||||
|
||||
@@ -571,6 +571,8 @@ namespace modules
|
||||
}
|
||||
|
||||
draw::setViewport(420, 15, 100, 225);
|
||||
mx = draw::getLocalX(input::mouseX());
|
||||
my = draw::getLocalY(input::mouseY());
|
||||
|
||||
bool changed = false;
|
||||
|
||||
@@ -727,10 +729,12 @@ namespace modules
|
||||
*/
|
||||
line+=10;
|
||||
ui::label("POS", 2, line, 48, 11);
|
||||
if (input::mouseClk(1) && mx>=2 && mx <=48 && my>=line && my<=line+10) return_value = GAME_EDITOR_BITMAP_POS;
|
||||
changed |= btn_small(49, line, act->bmp_rect.x, 0, 512, 25);
|
||||
changed |= btn_small(73, line, act->bmp_rect.y, 0, 512, 25);
|
||||
line+=10;
|
||||
ui::label("SIZE", 2, line, 48, 11);
|
||||
if (input::mouseClk(1) && mx>=2 && mx <=48 && my>=line && my<=line+10) return_value = GAME_EDITOR_BITMAP_SIZE;
|
||||
changed |= btn_small(49, line, act->bmp_rect.w, 0, 512, 25);
|
||||
changed |= btn_small(73, line, act->bmp_rect.h, 0, 512, 25);
|
||||
line+=10;
|
||||
|
||||
Reference in New Issue
Block a user