let it leave me like a long breath

let it dissipate or fade in the background

Mar. 6th, 2019

Profile

xax: purple-orange {11/3 knotwork star, pointed down (Default)
howling howling howling

Nav

  • Recent Entries
  • Archive
  • Reading
  • Tags
  • Memories
  • Profile

Tags

  • art - 2 uses
  • asteroid garden - 4 uses
  • code - 19 uses
  • demos - 1 use
  • dreams - 5 uses
  • ff7 fangame - 23 uses
  • fic prompts - 13 uses
  • gamedev challenge - 82 uses
  • hell game - 76 uses
  • nanowrimo - 11 uses
  • plants - 9 uses
  • process - 52 uses
  • programming - 51 uses
  • screenshots - 5 uses
  • writing log - 83 uses

May 2025

S M T W T F S
    123
45678 910
1112131415 1617
18192021222324
25262728293031
    • Previous Day
    • |
    • Next Day

    Mar. 6th, 2019

  • xax: yellow-orange {7/2} knotwork star, pointed down (7sided)
    Tags:
    • code,
    • programming
    posted @ 08:07 pm

    i made a new macro for twine!

    first, you can check out a small demo that uses it.

    this is for twine 1.4, and is a macro that adds some slightly more advanced form controls, with inline displays. this adds three new macros: <<toggle>>, <<block>>, and <<endblock>>.

    a <<toggle>> is in the form <<toggle $varname groupname value display>>, and it generates some clickable text ("display"), which, when clicked, will set $varname to value. if there are multiple toggles with the same groupname, clicking one will deselect any others.

    a <<block>> is in the form <<block groupname>>...<<endblock>>. when a toggle is selected, it will also inline refresh the text inside any blocks with matching groupnames.

    (if you want text to be refreshed based on multiple toggle groups, you can nest <<block>>s with no issue.)

    an example of use:
    <<toggle $foo foo foo_a "foo a">>
    <<toggle $foo foo foo_b "foo b">>
    <<toggle $foo foo foo_c "foo c">>
    
    <<block foo>>\
    $foo is <<print $foo>>
    <<endblock>>
    
    <<toggle $bar bar 1 one>>
    <<toggle $bar bar 2 two>>
    <<toggle $bar bar 3 three>>
    
    <<block bar>>\
    $bar is <<print $bar>>
    <<endblock>>


    would display two sets of three selections, with a "$var is ..." blurb beneath each one that's automatically updated every time you change a value.

    ( here's the code )

    • Add Memory
    • Share This Entry
    • Link
    • 0 comments
    • Reply
    • Previous Day
    • |
    • Next Day
Page generated Sep. 4th, 2025 07:19 pm
Powered by Dreamwidth Studios

Style Credit

  • Style: (No Theme) for vertical