Added help entries for anim functions. Fixed a compilation warning and a wrong anim button refresh.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1854 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
51a9ad0132
commit
b232e51c4c
@ -2900,6 +2900,82 @@ static const T_Help_table helptable_layerdown[] =
|
||||
HELP_TEXT ("below it. This has no effect if this")
|
||||
HELP_TEXT ("layer is already on the bottom.")
|
||||
};
|
||||
static const T_Help_table helptable_animtime[] =
|
||||
{
|
||||
|
||||
HELP_TITLE("ANIMATION SPEED")
|
||||
HELP_TEXT ("")
|
||||
HELP_LINK ("(Key:%s)",0x100+BUTTON_ANIM_TIME)
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Opens the 'animation speed' window.")
|
||||
HELP_TEXT ("This window displays the duration of the")
|
||||
HELP_TEXT ("current animation frame, in milliseconds.")
|
||||
HELP_TEXT ("You can:")
|
||||
HELP_TEXT ("* Change this frame's duration.")
|
||||
HELP_TEXT ("* Change the duration of all frames.")
|
||||
HELP_TEXT ("* Alter the duration of all frames by adding")
|
||||
HELP_TEXT ("a number of milliseconds. You can use")
|
||||
HELP_TEXT ("negative numbers to reduce the durations")
|
||||
HELP_TEXT ("instead.")
|
||||
};
|
||||
static const T_Help_table helptable_firstframe[] =
|
||||
{
|
||||
|
||||
HELP_TITLE("FIRST FRAME")
|
||||
HELP_TEXT ("")
|
||||
HELP_LINK ("(Key:%s)",0x100+BUTTON_ANIM_FIRST_FRAME)
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Goes to the first frame of animation.")
|
||||
};
|
||||
static const T_Help_table helptable_prevframe[] =
|
||||
{
|
||||
|
||||
HELP_TITLE("PREVIOUS FRAME")
|
||||
HELP_TEXT ("")
|
||||
HELP_BOLD ("LEFT CLICK")
|
||||
HELP_TEXT ("") HELP_LINK ("(Key:%s)",0x100+BUTTON_ANIM_PREV_FRAME)
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Selects the previous frame of animation")
|
||||
HELP_TEXT ("for editing. If the first frame was already")
|
||||
HELP_TEXT ("selected, this wraps back to the last frame.")
|
||||
HELP_TEXT ("")
|
||||
HELP_BOLD ("RIGHT CLICK")
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Hold a right-click on this button to run the")
|
||||
HELP_TEXT ("animation continuously backwards. This can")
|
||||
HELP_TEXT ("be used to preview the animation at its")
|
||||
HELP_TEXT ("intended speed, or to quickly navigate in")
|
||||
HELP_TEXT ("a long animation with many frames.")
|
||||
};
|
||||
static const T_Help_table helptable_nextframe[] =
|
||||
{
|
||||
|
||||
HELP_TITLE("NEXT FRAME")
|
||||
HELP_TEXT ("")
|
||||
HELP_LINK ("(Key:%s)",0x100+BUTTON_ANIM_NEXT_FRAME)
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Selects the last frame of animation")
|
||||
HELP_TEXT ("for editing. If the last frame was already")
|
||||
HELP_TEXT ("selected, this wraps back to the first")
|
||||
HELP_TEXT ("frame.")
|
||||
HELP_TEXT ("")
|
||||
HELP_BOLD ("RIGHT CLICK")
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Hold a right-click on this button to run the")
|
||||
HELP_TEXT ("animation continuously forward. This can")
|
||||
HELP_TEXT ("be used to preview the animation at its")
|
||||
HELP_TEXT ("intended speed, or to quickly navigate in")
|
||||
HELP_TEXT ("a long animation with many frames.")
|
||||
};
|
||||
static const T_Help_table helptable_lastframe[] =
|
||||
{
|
||||
|
||||
HELP_TITLE("LAST FRAME")
|
||||
HELP_TEXT ("")
|
||||
HELP_LINK ("(Key:%s)",0x100+BUTTON_ANIM_LAST_FRAME)
|
||||
HELP_TEXT ("")
|
||||
HELP_TEXT ("Goes to the last frame of animation.")
|
||||
};
|
||||
static const T_Help_table helptable_layerselect[] =
|
||||
{
|
||||
|
||||
@ -2934,14 +3010,14 @@ T_Help_section Help_section[] =
|
||||
HELP_TABLE_DECLARATION(helptable_layerdel)
|
||||
HELP_TABLE_DECLARATION(helptable_layerup)
|
||||
HELP_TABLE_DECLARATION(helptable_layerdown)
|
||||
// TODO: implement specific help sections for anim buttons
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
//
|
||||
// Anim-specific
|
||||
HELP_TABLE_DECLARATION(helptable_animtime)
|
||||
HELP_TABLE_DECLARATION(helptable_firstframe)
|
||||
HELP_TABLE_DECLARATION(helptable_prevframe)
|
||||
HELP_TABLE_DECLARATION(helptable_nextframe)
|
||||
HELP_TABLE_DECLARATION(helptable_lastframe)
|
||||
HELP_TABLE_DECLARATION(helptable_animtime) // reserved for future button
|
||||
// end of anim-specific
|
||||
HELP_TABLE_DECLARATION(helptable_layerselect)
|
||||
HELP_TABLE_DECLARATION(helptable_paintbrush)
|
||||
HELP_TABLE_DECLARATION(helptable_adjust)
|
||||
|
||||
@ -644,6 +644,6 @@ void Button_Anim_continuous_prev(void)
|
||||
} while (Mouse_K);
|
||||
|
||||
Hide_cursor();
|
||||
Unselect_button(BUTTON_ANIM_NEXT_FRAME);
|
||||
Unselect_button(BUTTON_ANIM_PREV_FRAME);
|
||||
Display_cursor();
|
||||
}
|
||||
|
||||
12
src/pages.c
12
src/pages.c
@ -682,7 +682,11 @@ void Update_screen_targets(void)
|
||||
/// Update all the special image buffers, if necessary.
|
||||
int Update_buffers(int width, int height)
|
||||
{
|
||||
#ifndef NOLAYERS
|
||||
#ifdef NOLAYERS
|
||||
// unused args
|
||||
(void) width;
|
||||
(void) height;
|
||||
#else
|
||||
// At least one dimension is different
|
||||
if (Main_visible_image.Width*Main_visible_image.Height != width*height)
|
||||
{
|
||||
@ -724,7 +728,11 @@ int Update_buffers(int width, int height)
|
||||
/// Update all the special image buffers of the spare page, if necessary.
|
||||
int Update_spare_buffers(int width, int height)
|
||||
{
|
||||
#ifndef NOLAYERS
|
||||
#ifdef NOLAYERS
|
||||
// unused args
|
||||
(void) width;
|
||||
(void) height;
|
||||
#else
|
||||
// At least one dimension is different
|
||||
if (Spare_visible_image.Width*Spare_visible_image.Height != width*height)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user