mirror of
https://github.com/trudnai/Steve2.git
synced 2025-01-14 07:29:50 +00:00
82deef06aa
- Automatically witch to debugger and back to emulator view when debugging
31 lines
691 B
Swift
31 lines
691 B
Swift
//
|
|
// NSMenu_Hard_Hat_Mack.swift
|
|
// Steve ][
|
|
//
|
|
// Created by Tamas Rudnai on 7/5/22.
|
|
// Copyright © 2022 GameAlloy. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
import Foundation
|
|
|
|
|
|
class CheatMenu: NSMenu {
|
|
override func update() {
|
|
super.update()
|
|
print("CheatMenu update")
|
|
|
|
// AppDelegate.current?.Cheat_Menu()
|
|
|
|
let /* ships */ _ = ViewController.shared?.Get_Hard_Hat_Mack()
|
|
// AppDelegate.current?.MenuItem_Hard_Hat_Mack_Add_3_Macks.title = String(format: "Add 3 Macks (%d)", ships!)
|
|
|
|
}
|
|
|
|
override func itemChanged(_ item: NSMenuItem) {
|
|
super.itemChanged(item)
|
|
print("CheatMenu itemChanged")
|
|
}
|
|
|
|
}
|