Skip to content

Commit

Permalink
tmp to record
Browse files Browse the repository at this point in the history
  • Loading branch information
VelorumS committed Dec 3, 2016
1 parent 4d29000 commit 5e5eb8a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libopenage/gui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,36 @@ Item {
GameMain {
id: gameObj

property bool recording: true

/**
* States: Null, Running
*/
onStateChanged:
if (state == GameMain.Running)
recordReplay = recording ? recordObj : replayObj

engine: Engine

LR.tag: "game"
}

CurveRecord {
id: recordObj

fileName: gameObj.recording ? "replay.txt" : ""

LR.tag: "record"
}

CurveReplay {
id: replayObj

fileName: gameObj.recording ? "" : "replay.txt"

LR.tag: "replay"
}

GameControl {
id: gameControlObj

Expand Down

0 comments on commit 5e5eb8a

Please sign in to comment.