Use setters.
This commit is contained in:
parent
27d5ce45f5
commit
af557fdd5e
@ -301,7 +301,7 @@ methodmap ArrayList < Handle {
|
|||||||
public SwapAt() = SwapArrayItems;
|
public SwapAt() = SwapArrayItems;
|
||||||
public FindString() = FindStringInArray;
|
public FindString() = FindStringInArray;
|
||||||
public FindValue() = FindValueInArray;
|
public FindValue() = FindValueInArray;
|
||||||
property int Size {
|
property int Length {
|
||||||
public get() = GetArraySize;
|
public get() = GetArraySize;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -98,7 +98,7 @@ native bool:EndOfMapVoteEnabled();
|
|||||||
* Called when mapchooser removes a nomination from its list.
|
* Called when mapchooser removes a nomination from its list.
|
||||||
* Nominations cleared on map start will not trigger this forward
|
* Nominations cleared on map start will not trigger this forward
|
||||||
*/
|
*/
|
||||||
forward void OnNominationRemoved(char[] map, int owner);
|
forward void OnNominationRemoved(const char[] map, int owner);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when mapchooser starts a Map Vote.
|
* Called when mapchooser starts a Map Vote.
|
||||||
|
@ -453,7 +453,7 @@ native GetMenuOptionFlags(Handle:menu);
|
|||||||
* @noreturn
|
* @noreturn
|
||||||
* @error Invalid Handle.
|
* @error Invalid Handle.
|
||||||
*/
|
*/
|
||||||
native SetMenuOptionFlags(Handle:menu, flags);
|
native void SetMenuOptionFlags(Handle:menu, flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether a vote is in progress.
|
* Returns whether a vote is in progress.
|
||||||
@ -562,24 +562,29 @@ methodmap Menu < Handle {
|
|||||||
public DisplayVote() = VoteMenu;
|
public DisplayVote() = VoteMenu;
|
||||||
public DisplayVoteToAll() = VoteMenuToAll;
|
public DisplayVoteToAll() = VoteMenuToAll;
|
||||||
|
|
||||||
public SetPagination() = SetMenuPagination;
|
|
||||||
property int Pagination {
|
property int Pagination {
|
||||||
public get() = GetMenuPagination;
|
public get() = GetMenuPagination;
|
||||||
|
public set(int value) {
|
||||||
|
SetMenuPagination(this, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public SetOptionFlags() = SetMenuOptionFlags;
|
|
||||||
property int OptionFlags {
|
property int OptionFlags {
|
||||||
public get() = GetMenuOptionFlags;
|
public get() = GetMenuOptionFlags;
|
||||||
|
public set() = SetMenuOptionFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SetExitButton() = SetMenuExitButton;
|
|
||||||
property bool ExitButton {
|
property bool ExitButton {
|
||||||
public get() = GetMenuExitButton;
|
public get() = GetMenuExitButton;
|
||||||
|
public set(bool value) {
|
||||||
|
SetMenuExitButton(this, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public SetExitBackButton() = SetMenuExitBackButton;
|
|
||||||
property bool ExitBackButton {
|
property bool ExitBackButton {
|
||||||
public get() = GetMenuExitBackButton;
|
public get() = GetMenuExitBackButton;
|
||||||
|
public set(bool value) {
|
||||||
|
SetMenuExitBackButton(this, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public SetNoVoteButton() = SetMenuNoVoteButton;
|
public SetNoVoteButton() = SetMenuNoVoteButton;
|
||||||
public SetVoteResultCallback() = SetVoteResultCallback;
|
public SetVoteResultCallback() = SetVoteResultCallback;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user