camera: zoom slider tooltip & zoom constants

This commit also adds constants for:

VarClientInt.CAMERA_ZOOM_FIXED_VIEWPORT = 73
VarClientInt.CAMERA_ZOOM_RESIZABLE_VIEWPORT = 74

WidgetID.Options.CAMERA_ZOOM_SLIDER_HANDLE = 15
WidgetInfo.OPTIONS_CAMERA_ZOOM_SLIDER_HANDLE
This commit is contained in:
Sean Dewar
2020-03-24 19:03:53 +00:00
parent 4a1dbf4e2d
commit 07d414d41d
6 changed files with 97 additions and 3 deletions

View File

@@ -162,8 +162,8 @@ public final class ScriptID
*
* Updates the VarClientInts (73, 74) to this same value
* <ul>
* <li> int Reset zoom position </li>
* <li> int Reset zoom position </li>
* <li> int Reset zoom position for fixed viewport mode</li>
* <li> int Reset zoom position for resizable viewport mode</li>
* </ul>
*/
@ScriptArguments(integer = 2)

View File

@@ -52,6 +52,12 @@ public enum VarClientInt
*/
INPUT_TYPE(5),
/**
* The game sets this to the same value as {@link #CAMERA_ZOOM_RESIZABLE_VIEWPORT}
*/
CAMERA_ZOOM_FIXED_VIEWPORT(73),
CAMERA_ZOOM_RESIZABLE_VIEWPORT(74),
MEMBERSHIP_STATUS(103),
INVENTORY_TAB(171),

View File

@@ -870,6 +870,7 @@ public class WidgetID
static class Options
{
static final int CAMERA_ZOOM_SLIDER_HANDLE = 15;
static final int MUSIC_SLIDER = 37;
static final int SOUND_EFFECT_SLIDER = 43;
static final int AREA_SOUND_SLIDER = 49;

View File

@@ -525,6 +525,7 @@ public enum WidgetInfo
SEED_VAULT_ITEM_TEXT(WidgetID.SEED_VAULT_GROUP_ID, WidgetID.SeedVault.ITEM_TEXT),
SEED_VAULT_INVENTORY_ITEMS_CONTAINER(WidgetID.SEED_VAULT_INVENTORY_GROUP_ID, WidgetID.SeedVault.INVENTORY_ITEM_CONTAINER),
OPTIONS_CAMERA_ZOOM_SLIDER_HANDLE(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.CAMERA_ZOOM_SLIDER_HANDLE),
OPTIONS_MUSIC_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.MUSIC_SLIDER),
OPTIONS_SOUND_EFFECT_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.SOUND_EFFECT_SLIDER),
OPTIONS_AREA_SOUND_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.AREA_SOUND_SLIDER),