mirror of
https://github.com/trudnai/Steve2.git
synced 2024-06-01 07:41:49 +00:00
Cheat Menu Handler
This commit is contained in:
parent
d139be08df
commit
66d5fd5e3b
|
@ -10,15 +10,21 @@ import Cocoa
|
|||
import Foundation
|
||||
|
||||
|
||||
class MainMenu: NSMenu {
|
||||
class CheatMenu: NSMenu {
|
||||
override func update() {
|
||||
super.update()
|
||||
print("MainMenu update")
|
||||
print("CheatMenu update")
|
||||
|
||||
// AppDelegate.current?.Cheat_Menu()
|
||||
|
||||
let ships = ViewController.current?.Get_Hard_Hat_Mack()
|
||||
// AppDelegate.current?.MenuItem_Hard_Hat_Mack_Add_3_Macks.title = String(format: "Add 3 Macks (%d)", ships!)
|
||||
|
||||
}
|
||||
|
||||
override func submenuAction(_ sender: Any?) {
|
||||
super.submenuAction(sender)
|
||||
print("MainMenu submenuAction")
|
||||
override func itemChanged(_ item: NSMenuItem) {
|
||||
super.itemChanged(item)
|
||||
print("CheatMenu itemChanged")
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user