Difference between revisions of "ButtonType"

From Cheat Engine
Jump to navigation Jump to search
m (...Typo)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The following button types are defined in defines.lua
+
[[Category:Lua]]
 +
'''ButtonType''' is an enumeration used in Cheat Engine Lua to specify which buttons appear on dialog boxes created with functions like [[messageDialog]]. Each constant represents a different button (such as Yes, No, OK, Cancel, etc.) that can be shown to the user for interaction. Use these constants to customize the set of buttons displayed in your message dialogs.
  
*mbYes (0): A button with the locale text for 'Yes'. Returns mrYes
+
Defined in: '''defines.lua'''
*mbNo (1): A button with the locale text for 'No'
+
 
*mbOK (2): A button with the locale text for 'Ok'
+
===Button Types===
*mbCancel (3): A button with the locale text for 'Cancel'
+
{|width="85%" cellpadding="5" cellspacing="0" border="0"
*mbAbort (4): A button with the locale text for 'Abort'
+
!align="left"|Constant
*mbRetry (5): A button with the locale text for 'Retry'
+
!align="left"|Value
*mbIgnore (6): A button with the locale text for 'Ignore'
+
!align="left"|Description
*mbAll (7): A button with the locale text for 'All'
+
|-
*mbNoToAll (8): A button with the locale text for 'No to all'
+
|mbYes
*mbYesToAll (9): A button with the locale text for 'Yes to all'
+
|0
*mbHelp (10): A button with the locale text for 'Help'
+
|Yes
*mbClose (11): A button with the locale text for 'Close'
+
|-
 +
|mbNo
 +
|1
 +
|No
 +
|-
 +
|mbOK
 +
|2
 +
|OK
 +
|-
 +
|mbCancel
 +
|3
 +
|Cancel
 +
|-
 +
|mbAbort
 +
|4
 +
|Abort
 +
|-
 +
|mbRetry
 +
|5
 +
|Retry
 +
|-
 +
|mbIgnore
 +
|6
 +
|Ignore
 +
|-
 +
|mbAll
 +
|7
 +
|All
 +
|-
 +
|mbNoToAll
 +
|8
 +
|No to All
 +
|-
 +
|mbYesToAll
 +
|9
 +
|Yes to All
 +
|-
 +
|mbHelp
 +
|10
 +
|Help
 +
|-
 +
|mbClose
 +
|11
 +
|Close
 +
|}
  
 
== See also ==
 
== See also ==

Latest revision as of 23:45, 10 July 2025

ButtonType is an enumeration used in Cheat Engine Lua to specify which buttons appear on dialog boxes created with functions like messageDialog. Each constant represents a different button (such as Yes, No, OK, Cancel, etc.) that can be shown to the user for interaction. Use these constants to customize the set of buttons displayed in your message dialogs.

Defined in: defines.lua

Button Types[edit]

Constant Value Description
mbYes 0 Yes
mbNo 1 No
mbOK 2 OK
mbCancel 3 Cancel
mbAbort 4 Abort
mbRetry 5 Retry
mbIgnore 6 Ignore
mbAll 7 All
mbNoToAll 8 No to All
mbYesToAll 9 Yes to All
mbHelp 10 Help
mbClose 11 Close

See also[edit]