From 95e93c225d02421dc1ef6af855991d589eb52c73 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 24 Mar 2013 19:27:43 +0000 Subject: [PATCH] Editor Feature (by Buggler) - Hotkey 'Ctrl+/' & '/' to place item under mouse cursor when in item mode git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5953 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Editor/Editor Taskbar Utils.cpp | 5 +- Editor/EditorItems.cpp | 16 ++++- Editor/editscreen.cpp | 100 +++++++++++++++++++++++++++++++- Editor/editscreen.h | 3 + Utils/_ChineseText.cpp | 4 +- Utils/_DutchText.cpp | 4 +- Utils/_EnglishText.cpp | 4 +- Utils/_FrenchText.cpp | 4 +- Utils/_GermanText.cpp | 4 +- Utils/_ItalianText.cpp | 4 +- Utils/_PolishText.cpp | 4 +- Utils/_RussianText.cpp | 4 +- Utils/_TaiwaneseText.cpp | 4 +- 13 files changed, 135 insertions(+), 25 deletions(-) diff --git a/Editor/Editor Taskbar Utils.cpp b/Editor/Editor Taskbar Utils.cpp index 90f4145e..ad5ce335 100644 --- a/Editor/Editor Taskbar Utils.cpp +++ b/Editor/Editor Taskbar Utils.cpp @@ -979,6 +979,7 @@ void RenderEditorInfo( ) //taskbar render, we need to draw the buttons without hilites, hence this flag. This flag is //always true in ButtonSystem.c, so it won't effect anything else. extern BOOLEAN gfGotoGridNoUI; +extern BOOLEAN gfKeyboardItemCreationUI; void ProcessEditorRendering() { @@ -1016,7 +1017,7 @@ void ProcessEditorRendering() if( gfSummaryWindowActive ) RenderSummaryWindow(); - else if( !gfGotoGridNoUI && !InOverheadMap() ) + else if( !gfGotoGridNoUI && !gfKeyboardItemCreationUI && !InOverheadMap() ) RenderMercStrings(); if( gfEditingDoor ) @@ -1026,7 +1027,7 @@ void ProcessEditorRendering() RenderAllTextFields(); RenderEditorInfo(); - if( !gfSummaryWindowActive && !gfGotoGridNoUI && !InOverheadMap() ) + if( !gfSummaryWindowActive && !gfGotoGridNoUI && !gfKeyboardItemCreationUI && !InOverheadMap() ) { if( gpItem && gsItemGridNo != -1 ) RenderSelectedItemBlownUp(); diff --git a/Editor/EditorItems.cpp b/Editor/EditorItems.cpp index e8a19937..2141c26e 100644 --- a/Editor/EditorItems.cpp +++ b/Editor/EditorItems.cpp @@ -887,11 +887,23 @@ void AddSelectedItemToWorld( INT32 sGridNo ) if( eInfo.uiItemType == TBAR_MODE_ITEM_KEYS ) { - CreateKeyObject( &gTempObject, 1, (UINT8)eInfo.sSelItemIndex ); + if ( fEditorCreateItemFromKeyboard ) + { + CreateKeyObject( &gTempObject, 1, (UINT8)usEditorTempItem ); + fEditorCreateItemFromKeyboard = FALSE; + } + else + CreateKeyObject( &gTempObject, 1, (UINT8)eInfo.sSelItemIndex ); } else { - CreateItem( eInfo.pusItemIndex[eInfo.sSelItemIndex], 100, &gTempObject ); + if ( fEditorCreateItemFromKeyboard ) + { + CreateItem( usEditorTempItem, 100, &gTempObject ); + fEditorCreateItemFromKeyboard = FALSE; + } + else + CreateItem( eInfo.pusItemIndex[eInfo.sSelItemIndex], 100, &gTempObject ); } usFlags = 0; switch( gTempObject.usItem ) diff --git a/Editor/editscreen.cpp b/Editor/editscreen.cpp index bd8e28e0..23b80e0d 100644 --- a/Editor/editscreen.cpp +++ b/Editor/editscreen.cpp @@ -44,6 +44,7 @@ #include "newsmooth.h" #include "Smoothing Utils.h" #include "messagebox.h" + #include "messageboxscreen.h" #include "Soldier Create.h" #include "Soldier Init List.h" #include "Text Input.h" @@ -235,6 +236,17 @@ BOOLEAN gfGotoGridNoUI = FALSE; INT32 guiGotoGridNoUIButtonID; MOUSE_REGION GotoGridNoUIRegion; +//Buggler: Create item with keyboard shortcut +void EditorKeyboardItemCreationCallBack( UINT8 ubResult ); +void CreateKeyboardItemCreationUI(); +void RemoveKeyboardItemCreationUI(); +BOOLEAN gfKeyboardItemCreationUI = FALSE; +INT32 guiKeyboardItemCreationUIButtonID; +MOUSE_REGION KeyboardItemCreationUIRegion; +INT32 giCreateItemCursorMapIndex; +BOOLEAN fEditorCreateItemFromKeyboard = FALSE; +UINT16 usEditorTempItem = 1632; + //---------------------------------------------------------------------------------------------- // EditScreenInit // @@ -1398,6 +1410,27 @@ void HandleKeyboardShortcuts( ) break; } } + else if( gfKeyboardItemCreationUI ) + { + switch( EditorInputEvent.usParam ) + { + case ESC: + SetInputFieldStringWith16BitString( 0, L"" ); + RemoveKeyboardItemCreationUI(); + break; + case ENTER: + RemoveKeyboardItemCreationUI(); + break; + case 'x': + if( EditorInputEvent.usKeyState & ALT_DOWN ) + { + SetInputFieldStringWith16BitString( 0, L"" ); + RemoveKeyboardItemCreationUI(); + iCurrentAction = ACTION_QUIT_GAME; + } + break; + } + } else switch( EditorInputEvent.usParam ) { case HOME: @@ -2107,6 +2140,30 @@ void HandleKeyboardShortcuts( ) } gfRenderTaskbar = TRUE; break; + case '/': + // Buggler: create item with keyboard input + if( iCurrentTaskbar == TASK_ITEMS ) + { + if( !GetMouseXY( &sGridX, &sGridY ) ) + return; + + if( !(gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) ) + { //if mouse cursor not in the game screen. + return; + } + + fEditorCreateItemFromKeyboard = TRUE; + + giCreateItemCursorMapIndex = MAPROWCOLTOPOS( sGridY, sGridX ); + + if( EditorInputEvent.usKeyState & CTRL_DOWN ) + CreateKeyboardItemCreationUI(); + else + AddSelectedItemToWorld( giCreateItemCursorMapIndex ); + + gfRenderWorld = TRUE; + } + break; default: iCurrentAction = ACTION_NULL; break; @@ -4551,7 +4608,7 @@ UINT32 EditScreenHandle( void ) EnsureStatusOfEditorButtons(); // Handle scrolling of the map if needed - if( !gfGotoGridNoUI && iDrawMode != DRAW_MODE_SHOW_TILESET && !gfSummaryWindowActive && + if( !gfGotoGridNoUI && !gfKeyboardItemCreationUI && iDrawMode != DRAW_MODE_SHOW_TILESET && !gfSummaryWindowActive && !gfEditingDoor && !gfNoScroll && !InOverheadMap() ) ScrollWorld(); @@ -4639,8 +4696,8 @@ void CreateGotoGridNoUI() DisableEditorTaskbar(); //Create the background panel. guiGotoGridNoUIButtonID = - CreateTextButton( L"Enter gridno:", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT, - iScreenWidthOffset + 290, iScreenHeightOffset + 155, 60, 50, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MSYS_NO_CALLBACK ); + CreateTextButton( L"Enter Gridno:", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT, + iScreenWidthOffset + 288, iScreenHeightOffset + 155, 64, 50, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MSYS_NO_CALLBACK ); SpecifyDisabledButtonStyle( guiGotoGridNoUIButtonID, DISABLED_STYLE_NONE ); SpecifyButtonTextOffsets( guiGotoGridNoUIButtonID, 5, 5, FALSE ); DisableButton( guiGotoGridNoUIButtonID ); @@ -4760,3 +4817,40 @@ UINT32 EditScreenShutdown( ) #endif +void CreateKeyboardItemCreationUI() +{ + gfKeyboardItemCreationUI = TRUE; + //Disable the rest of the editor + DisableEditorTaskbar(); + //Create the background panel. + guiKeyboardItemCreationUIButtonID = + CreateTextButton( L"Enter ItemID:", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT, + iScreenWidthOffset + 288, iScreenHeightOffset + 155, 64, 50, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MSYS_NO_CALLBACK ); + SpecifyDisabledButtonStyle( guiKeyboardItemCreationUIButtonID, DISABLED_STYLE_NONE ); + SpecifyButtonTextOffsets( guiKeyboardItemCreationUIButtonID, 5, 5, FALSE ); + DisableButton( guiKeyboardItemCreationUIButtonID ); + //Create a blanket region so nobody can use + MSYS_DefineRegion( &KeyboardItemCreationUIRegion, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, MSYS_PRIORITY_NORMAL+1, 0, MSYS_NO_CALLBACK, MSYS_NO_CALLBACK ); + //Init a text input field. + InitTextInputModeWithScheme( DEFAULT_SCHEME ); + AddTextInputField( iScreenWidthOffset + 300, iScreenHeightOffset + 180, 40, 18, MSYS_PRIORITY_HIGH, L"", 4, INPUTTYPE_NUMERICSTRICT ); +} + +void RemoveKeyboardItemCreationUI() +{ + INT16 sTemp; + + gfKeyboardItemCreationUI = FALSE; + //Enable the rest of the editor + EnableEditorTaskbar(); + RemoveButton( guiKeyboardItemCreationUIButtonID ); + sTemp = GetNumericStrictValueFromField( 0 ); + KillTextInputMode(); + MSYS_RemoveRegion( &KeyboardItemCreationUIRegion ); + if ( sTemp != -1 ) + { + usEditorTempItem = sTemp; + AddSelectedItemToWorld( giCreateItemCursorMapIndex ); + } + MarkWorldDirty(); +} \ No newline at end of file diff --git a/Editor/editscreen.h b/Editor/editscreen.h index 3888c240..a0f80aeb 100644 --- a/Editor/editscreen.h +++ b/Editor/editscreen.h @@ -82,6 +82,9 @@ extern BOOLEAN fRaiseWorld;//dnl ch3 210909 extern BOOLEAN fShowHighGround;//dnl ch2 210909 void ShowHighGround(INT32 iShowHighGroundCommand);//dnl ch2 210909 +extern BOOLEAN fEditorCreateItemFromKeyboard; +extern UINT16 usEditorTempItem; + #endif #endif diff --git a/Utils/_ChineseText.cpp b/Utils/_ChineseText.cpp index 902b78ad..8013e4eb 100644 --- a/Utils/_ChineseText.cpp +++ b/Utils/_ChineseText.cpp @@ -530,10 +530,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_DutchText.cpp b/Utils/_DutchText.cpp index 04b77322..6e152763 100644 --- a/Utils/_DutchText.cpp +++ b/Utils/_DutchText.cpp @@ -531,10 +531,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_EnglishText.cpp b/Utils/_EnglishText.cpp index eb2e3c82..96b1990a 100644 --- a/Utils/_EnglishText.cpp +++ b/Utils/_EnglishText.cpp @@ -530,10 +530,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_FrenchText.cpp b/Utils/_FrenchText.cpp index 129315fb..47f7c99f 100644 --- a/Utils/_FrenchText.cpp +++ b/Utils/_FrenchText.cpp @@ -535,10 +535,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text // TODO.Translate L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text // TODO.Translate - L"", //Items fasthelp text // TODO.Translate + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text // TODO.Translate L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text // TODO.Translate - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text // TODO.Translate + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text // TODO.Translate }; //Editor Taskbar Utils.cpp diff --git a/Utils/_GermanText.cpp b/Utils/_GermanText.cpp index cd025d70..7ffd8fdb 100644 --- a/Utils/_GermanText.cpp +++ b/Utils/_GermanText.cpp @@ -554,10 +554,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_ItalianText.cpp b/Utils/_ItalianText.cpp index 11a5fbb6..37387a38 100644 --- a/Utils/_ItalianText.cpp +++ b/Utils/_ItalianText.cpp @@ -529,10 +529,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_PolishText.cpp b/Utils/_PolishText.cpp index d8359d74..75c7f356 100644 --- a/Utils/_PolishText.cpp +++ b/Utils/_PolishText.cpp @@ -537,10 +537,10 @@ STR16 iEditorTaskbarInternalText[]= L"Opcje", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text // TODO.Translate L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text // TODO.Translate - L"", //Items fasthelp text // TODO.Translate + LL"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text // TODO.Translate L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text // TODO.Translate L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text // TODO.Translate - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text // TODO.Translate + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text // TODO.Translate }; //Editor Taskbar Utils.cpp diff --git a/Utils/_RussianText.cpp b/Utils/_RussianText.cpp index 8be61f0b..8fca5041 100644 --- a/Utils/_RussianText.cpp +++ b/Utils/_RussianText.cpp @@ -531,10 +531,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp diff --git a/Utils/_TaiwaneseText.cpp b/Utils/_TaiwaneseText.cpp index d33012f8..159015b2 100644 --- a/Utils/_TaiwaneseText.cpp +++ b/Utils/_TaiwaneseText.cpp @@ -529,10 +529,10 @@ STR16 iEditorTaskbarInternalText[]= L"Options", L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Terrain fasthelp text L"|./|,: Cycle 'width: xx' dimensions\n|P|g |U|p/|P|g |D|n: Previous/Next tile for selected object(s)/in smart method", //Buildings fasthelp text - L"", //Items fasthelp text + L"|C|t|r|l+|/: Place new item under mouse cursor\n|/: Place same item under mouse cursor", //Items fasthelp text L"|1-|9: Set waypoints\n|C|t|r|l+|C/|C|t|r|l+|V: Copy/Paste merc", //Mercs fasthelp text L"|C|t|r|l+|G: Go to grid no\n \n|I: Toggle overhead map\n|J: Toggle draw high ground\n|K: Toggle high ground markers\n|S|h|i|f|t+|L: Toggle map edge points\n|S|h|i|f|t+|T: Toggle treetops\n|U: Toggle world raise\n \n|./|,: Cycle 'width: xx' dimensions", //Map Info fasthelp text - L"|C|t|r|l+|N: create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text + L"|C|t|r|l+|N: Create new map\n \n|F|5: Show Summary Info/Country Map\n|F|1|0: Remove all lights\n|F|1|1: Reverse schedules\n|F|1|2: Clear schedules\n \n|S|h|i|f|t+|R: Toggle random placement based on quantity of selected object(s)", //Options fasthelp text }; //Editor Taskbar Utils.cpp