prepare chk
This commit is contained in:
1 parent
26c6ee3757
commit
5752c96f12
8 files changed
+23
-51
No files matched your search
@@ -11,9 +11,6 @@ struct ChkgfxView: View {
|
||||
VStack(spacing: 16) {
|
||||
Text("Check graphics")
|
||||
.font(.largeTitle)
|
||||
Button("Load model") {
|
||||
rootSet(F.didClickLoadModel, true)
|
||||
}
|
||||
}
|
||||
.padding(40)
|
||||
}
|
||||
|
||||
@@ -67,49 +67,3 @@ RenderComponent:
|
||||
c.recentField == F.backingPixelSize
|
||||
then:
|
||||
c.pixelSize = c.backingPixelSize
|
||||
|
||||
RootComponent:
|
||||
type: component
|
||||
oneliners:
|
||||
- countText: RootVM.shared!.countText = c.countText
|
||||
- didClickIncrement: renderSet(F.didClickIncrement, true)
|
||||
shoulds:
|
||||
count:
|
||||
1. Upon hitting 10 the first time:
|
||||
if:
|
||||
c.recentField == F.didClickIncrement &&
|
||||
c.count == 7
|
||||
then:
|
||||
c.count += 10
|
||||
2. Upon each button click:
|
||||
if:
|
||||
c.recentField == F.didClickIncrement
|
||||
then:
|
||||
c.count += 1
|
||||
countText:
|
||||
1. Upon each count change:
|
||||
if:
|
||||
c.recentField == F.count
|
||||
then:
|
||||
c.countText = "Count: '\(c.count)'"
|
||||
2. Upon launch:
|
||||
if:
|
||||
c.recentField == F.didLaunch
|
||||
then:
|
||||
c.countText = "Press the button to count"
|
||||
didLaunch:
|
||||
1. Only once during the first setup:
|
||||
if:
|
||||
c.recentField == F.didSetup &&
|
||||
c.didLaunch == false
|
||||
then:
|
||||
c.didLaunch = true
|
||||
|
||||
RootContext:
|
||||
type: context
|
||||
fields:
|
||||
count: Int
|
||||
countText: String
|
||||
didClickIncrement: Bool
|
||||
didLaunch: Bool
|
||||
didSetup: Bool
|
||||
@@ -5,7 +5,7 @@ import PackageDescription
|
||||
let raylibPrefix = ProcessInfo.processInfo.environment["RAYLIB_PREFIX"] ?? "/opt/homebrew"
|
||||
|
||||
let package = Package(
|
||||
name: "OGSChkgfx",
|
||||
name: "OGSchkgfx",
|
||||
platforms: [
|
||||
.macOS(.v13)
|
||||
],
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../../res
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../res/AppIcon.icns
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../res/cube
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-chkgfx
|
||||
|
||||
STEP=0
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/buildMac $TARGET
|
||||
source $T/packageMac $TARGET "OGS chkgfx"
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
STEP=0
|
||||
source $T/runMac ogs-chkgfx "OGS chkgfx"
|
||||
Reference in new issue
Block a user