4
1

Topbar.tw 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. :: Topbar[include]
  2. <div class="buttons">
  3. <<id 'buttonBack'>>
  4. <<if State.length >= 2>>
  5. <<button '🡄'>>
  6. <<run Engine.backward()>>
  7. <</button>>
  8. <<else>>
  9. <<class 'disabled'>>
  10. <<button '🡄'>><</button>>
  11. <</class>>
  12. <</if>>
  13. <</id>>
  14. <<id 'buttonForward'>>
  15. <<if State.length !== State.size>>
  16. <<button '🡆'>>
  17. <<run Engine.forward()>>
  18. <</button>>
  19. <<else>>
  20. <<class 'disabled'>>
  21. <<button '🡆'>><</button>>
  22. <</class>>
  23. <</if>>
  24. <</id>>
  25. <<id 'buttonSave'>>
  26. <<button '🖫'>>
  27. <<run UI.saves();>>
  28. <</button>>
  29. <</id>>
  30. <<id 'buttonSettings'>>
  31. <<button '🖹'>>
  32. <<run Dialog.setup("Settings", "uiSettings");Dialog.wiki(Story.get("UISettingsDialog").processText());Dialog.open();>>
  33. <</button>>
  34. <</id>>
  35. <<id 'buttonRestart'>>
  36. <<button '⭯'>>
  37. <<run UI.restart();>>
  38. <</button>>
  39. <</id>>
  40. <<id 'buttonEditor'>>
  41. <<button 'E'>>
  42. <<set _returnArgs = $args ?? [QSP.$ARGS[0]]>>
  43. <<set $editor={"passage":State.passage, "returnPassage":State.passage, "returnArgs": _returnArgs}>>
  44. <<goto 'editor'>>
  45. <</button>>
  46. <</id>>
  47. </div>