FCString
also accept a Lua string
or number
.FCString
parameter in getters is optional and if omitted, the result will be returned as a Lua string
.GetParent
from PDK to allow the parent window to be accessed from a control.Command
event to be set directly on the control.fcmcontrol.Init(self)
[Internal]
Input | Type | Description |
---|---|---|
self |
FCMControl |
fcmcontrol.GetParent(self)
[PDK Port]
Returns the control’s parent window.
Do not override or disable this method.
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
FCMCustomWindow |
fcmcontrol.RegisterParent(self, window)
[Fluid] [Internal]
Used to register the parent window when the control is created.
Do not disable this method.
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
window |
FCMCustomWindow |
fcmcontrol.GetEnable(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
boolean |
fcmcontrol.SetEnable(self, enable)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
enable |
boolean |
fcmcontrol.GetVisible(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
boolean |
fcmcontrol.SetVisible(self, visible)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
visible |
boolean |
fcmcontrol.GetLeft(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
number |
fcmcontrol.SetLeft(self, left)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
left |
number |
fcmcontrol.GetTop(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
number |
fcmcontrol.SetTop(self, top)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
top |
number |
fcmcontrol.GetHeight(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
number |
fcmcontrol.SetHeight(self, height)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
height |
number |
fcmcontrol.GetWidth(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
number |
fcmcontrol.SetWidth(self, width)
[Fluid] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
width |
number |
fcmcontrol.GetText(self, str)
[?Fluid] [Override]
Override Changes:
FCString
is optional. If omitted, the result is returned as a Lua string
. If passed, nothing is returned and the method is fluid.Input | Type | Description |
---|---|---|
self |
FCMControl |
|
str (optional) |
FCString |
Return type | Description |
---|---|
string |
Returned if str is omitted. |
fcmcontrol.SetText(self, str)
[Fluid] [Override]
Override Changes:
string
or number
in addition to FCString
.Input | Type | Description |
---|---|---|
self |
FCMControl |
|
str |
`FCString | string |
fcmcontrol.UseStoredState(self)
[Internal]
Checks if this control should use its stored state instead of the live state from the control.
Do not override or disable this method.
Input | Type | Description |
---|---|---|
self |
FCMControl |
Return type | Description |
---|---|
boolean |
fcmcontrol.StoreState(self)
[Fluid] [Internal]
Stores the control’s current state.
Do not disable this method. Override as needed but call the parent first.
Input | Type | Description |
---|---|---|
self |
FCMControl |
fcmcontrol.RestoreState(self)
[Fluid] [Internal]
Restores the control’s stored state.
Do not disable this method. Override as needed but call the parent first.
Input | Type | Description |
---|---|---|
self |
FCMControl |
fcmcontrol.AddHandleCommand(self, callback)
[Fluid]
Adds a handler for command events.
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
callback |
function |
See FCCustomLuaWindow.HandleCommand in the PDK for callback signature. |
fcmcontrol.RemoveHandleCommand(self, callback)
[Fluid]
Removes a handler added with AddHandleCommand
.
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
callback |
function |
fcmcontrol.SetTextLocalized(self, key)
[Fluid]
Removes a handler added with AddHandleCommand
.
Input | Type | Description |
---|---|---|
self |
FCMControl |
|
key |
string |
The key into the localization table. If there is no entry in the appropriate localization table, the key is the text. |