* Taseditor: fixed bug with popup screenshots

* updated lua scripts
This commit is contained in:
ansstuff 2012-03-24 14:07:59 +00:00
parent 6e5ed43c21
commit 1d761114b6
6 changed files with 15 additions and 4 deletions

View File

@ -17,10 +17,10 @@
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
pads = { pads = {
{num=1, on=true, color="red", x=9, y=200, w=34, h=10}, {num=1, on=true, color="red", x=50, y=200, w=34, h=10},
{num=2, on=false, color="yellow", x=54, y=200, w=34, h=10}, {num=2, on=true, color="yellow", x=90, y=200, w=34, h=10},
{num=3, on=false, color="green", x=99, y=200, w=34, h=10}, {num=3, on=false, color="green", x=130, y=200, w=34, h=10},
{num=4, on=false, color="orange", x=144, y=200, w=34, h=10} {num=4, on=false, color="orange", x=170, y=200, w=34, h=10}
} }
buttons = { buttons = {
@ -54,6 +54,8 @@ function draw_joypads()
end end
end end
end end
else
gui.text(1, 9, "TAS Editor is not engaged.");
end end
end end

View File

@ -21,6 +21,8 @@ function display_selection()
else else
gui.text(0, 10, "Selection: no"); gui.text(0, 10, "Selection: no");
end end
else
gui.text(1, 9, "TAS Editor is not engaged.");
end end
end end

View File

@ -88,6 +88,8 @@ function reversed_recorder()
end end
end end
playback_last_position = playback_position; playback_last_position = playback_position;
else
gui.text(1, 9, "TAS Editor is not engaged.");
end end
end end

View File

@ -55,6 +55,8 @@ function ShowNotes()
note = taseditor.getnote(taseditor.getmarker(selection_position)); note = taseditor.getnote(taseditor.getmarker(selection_position));
DisplayText(1, 190, note, 50); DisplayText(1, 190, note, 50);
end end
else
gui.text(1, 9, "TAS Editor is not engaged.");
end end
end end

View File

@ -53,6 +53,8 @@ function track_changes()
last_frame = current_frame; last_frame = current_frame;
last_frame_indicator_value = indicator; last_frame_indicator_value = indicator;
end end
else
gui.text(1, 9, "TAS Editor is not engaged.");
end end
end end

View File

@ -487,6 +487,7 @@ void BOOKMARKS::MouseMove(int new_x, int new_y)
} }
void BOOKMARKS::FindItemUnderMouse() void BOOKMARKS::FindItemUnderMouse()
{ {
item_under_mouse = ITEM_UNDER_MOUSE_NONE;
if (mouse_x > list_row_left) if (mouse_x > list_row_left)
{ {
item_under_mouse = (mouse_y - list_row_top) / list_row_height; item_under_mouse = (mouse_y - list_row_top) / list_row_height;