-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Deaod/master
InstaGib+ 8
- Loading branch information
Showing
63 changed files
with
3,752 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
class IGPlus_Checkbox extends UWindowCheckbox; | ||
|
||
var UWindowDialogControl NextSettingControl; | ||
|
||
function MouseLeave() { | ||
super(UWindowDialogControl).MouseLeave(); | ||
|
||
if(ToolTipString != "") | ||
ToolTip(""); | ||
} | ||
|
||
simulated function MouseEnter() { | ||
local int CutPos; | ||
local int CutPos2; | ||
|
||
super(UWindowDialogControl).MouseEnter(); | ||
|
||
if(ToolTipString != "") { | ||
CutPos = InStr(ToolTipString, "\\n"); | ||
|
||
CutPos2 = InStr(ToolTipString, Chr(13)); | ||
if ((CutPos == -1 && CutPos2 >= 0) || (CutPos >= 0 && CutPos2 >= 0 && CutPos2 < CutPos)) | ||
CutPos = CutPos2; | ||
|
||
CutPos2 = InStr(ToolTipString, Chr(10)); | ||
if ((CutPos == -1 && CutPos2 >= 0) || (CutPos >= 0 && CutPos2 >= 0 && CutPos2 < CutPos)) | ||
CutPos = CutPos2; | ||
|
||
if (CutPos >= 0) | ||
ToolTip(Left(ToolTipString, CutPos)); | ||
else | ||
ToolTip(ToolTipString); | ||
} | ||
|
||
if (!bDisabled && (OverSound != None)) | ||
GetPlayerOwner().PlaySound( OverSound, SLOT_Interface ); | ||
} | ||
|
||
function RClick(float X, float Y) | ||
{ | ||
local UWindowMessageBox W; | ||
if (HelpText == "") return; | ||
W = MessageBox(Text, HelpText, MB_OK, MR_OK); | ||
W.bLeaveOnscreen = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
class IGPlus_ComboBox extends UWindowComboControl; | ||
|
||
var UWindowDialogControl NextSettingControl; | ||
|
||
var float EditBoxMinWidth; | ||
var float EditBoxMaxWidth; | ||
var float EditBoxWidthFraction; | ||
|
||
function AfterCreate() { | ||
EditBoxWidthFraction = FClamp(EditBoxWidth / WinWidth, 0.05, 0.95); | ||
EditBoxMinWidth = WinWidth * EditBoxWidthFraction; | ||
EditBoxMaxWidth = WinWidth * EditBoxWidthFraction; | ||
} | ||
|
||
function UWindowComboListItem FindEntry(int Index) { | ||
return UWindowComboListItem(List.Items.FindEntry(Index)); | ||
} | ||
|
||
function int GetSelectedIndex2() { | ||
return List.FindItemIndex2(GetValue2()); | ||
} | ||
|
||
function MouseLeave() { | ||
Super.MouseLeave(); | ||
if(HelpText != "") ToolTip(""); | ||
} | ||
|
||
function MouseEnter() { | ||
local int CutPos; | ||
local int CutPos2; | ||
|
||
Super.MouseEnter(); | ||
|
||
if(HelpText != "") { | ||
CutPos = InStr(HelpText, "\\n"); | ||
|
||
CutPos2 = InStr(HelpText, Chr(13)); | ||
if ((CutPos == -1 && CutPos2 >= 0) || (CutPos >= 0 && CutPos2 >= 0 && CutPos2 < CutPos)) | ||
CutPos = CutPos2; | ||
|
||
CutPos2 = InStr(HelpText, Chr(10)); | ||
if ((CutPos == -1 && CutPos2 >= 0) || (CutPos >= 0 && CutPos2 >= 0 && CutPos2 < CutPos)) | ||
CutPos = CutPos2; | ||
|
||
if (CutPos >= 0) | ||
ToolTip(Left(HelpText, CutPos)); | ||
else | ||
ToolTip(HelpText); | ||
} | ||
} | ||
|
||
function Resized() { | ||
super.Resized(); | ||
|
||
EditBoxWidth = FClamp(WinWidth * EditBoxWidthFraction, EditBoxMinWidth, EditBoxMaxWidth); | ||
} | ||
|
||
function RClick(float X, float Y) | ||
{ | ||
local UWindowMessageBox W; | ||
if (HelpText == "") return; | ||
W = MessageBox(Text, HelpText, MB_OK, MR_OK); | ||
W.bLeaveOnscreen = true; | ||
} |
Oops, something went wrong.