mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Brief: //dnl ch78
- Some mapeditor cosmetic and CTD fixes. Details: - Fix sticky tooltip if perform scroll or go to 'Sector Summary' window. - Fix accidental mercid delete from textbox if press any key while in 'Profile ID mode'. - Fix CTD from release if several time swap from RND to any other item button. - Disable some enabled buttons and mouse area from taskbar when 'Sector Summary' windows is active. - Checkbox toggles from Mercs bar now remember their state after switching to another taskbar option. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6657 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1773,7 +1773,7 @@ void SetupTextInputForMercProfile()
|
||||
INT16 sNum;
|
||||
|
||||
InitTextInputModeWithScheme( DEFAULT_SCHEME );
|
||||
|
||||
AddUserInputField(NULL);//dnl ch78 271113 to avoid automatic textbox selection and enable shortcut keys while not typing
|
||||
sNum = gpSelected->pDetailedPlacement->ubProfile;
|
||||
if( sNum == NO_PROFILE )
|
||||
str[0] = '\0';
|
||||
@@ -1887,7 +1887,7 @@ void ExtractAndUpdateMercProfile()
|
||||
|
||||
//if the string is blank, returning -1, then set the value to NO_PROFILE
|
||||
//because ubProfile is unsigned.
|
||||
sNum = (INT16)min( GetNumericStrictValueFromField( 0 ), NUM_PROFILES-1 );//dnl ch54 101009
|
||||
sNum = (INT16)min(GetNumericStrictValueFromField(1), NUM_PROFILES-1);//dnl ch54 101009 //dnl ch78 271113
|
||||
if( sNum == -1 )
|
||||
{
|
||||
gpSelected->pDetailedPlacement->ubProfile = NO_PROFILE;
|
||||
|
||||
Reference in New Issue
Block a user