VN textbox event

This commit is contained in:
2023-05-21 15:11:51 -07:00
parent b61c1fc5ba
commit 74cdc66814
16 changed files with 85 additions and 43 deletions

Binary file not shown.

View File

@ -17,10 +17,10 @@
<UILabel
text="This is the text box."
font="font_main"
fontSize="32"
alignment="16, 16, 0, 0"
alignX="UI_COMPONENT_ALIGN_STRETCH"
alignY="UI_COMPONENT_ALIGN_STRETCH"
fontSize="48"
alignment="0, 0, 500, 500"
alignX="UI_COMPONENT_ALIGN_MIDDLE"
alignY="UI_COMPONENT_ALIGN_MIDDLE"
ref="uiLabel"
/>
</child>

View File

@ -1,4 +0,0 @@
<vnscene name="Scene1Prologue" extend="scenes/SceneBase">
<events>
</events>
</vnscene>

View File

@ -0,0 +1,35 @@
<vnscene name="Scene1Prologue" extend="scenes/SceneBase">
<events>
<text>
<string lang="en">There is a bucket.</string>
</text>
<text>
<string lang="en">It sways above your head like the mouth of a god. You are on Angelwood's best stage, and they are cheering for you, calling you their Queen, their Prom Queen.</string>
</text>
<text>
<string lang="en">And you are dead soon.</string>
</text>
<text>
<string lang="en">It's Prom Day. The metal bucket is swaying. Over you. Drenching your white pristine dress in guts and gore red. They aren't cheering anymore. They're gasping. But not screaming: oh, no, not in respectable Angelwood.</string>
</text>
<text>
<string lang="en">God. You didn't think a pig's intestines could feel so cold.</string>
</text>
<text>
<string lang="en">You are dead when the bucket falls — crushes your skull — caves you open — drenches you and drenches you, drowns you, fells you and kills, kills, kills you.</string>
</text>
<text>
<string lang="en">And the last thing you see ---</string>
</text>
<text>
<string lang="en">Is their eyes.</string>
</text>
</events>
</vnscene>

View File

@ -26,6 +26,10 @@
</item>
</item>
<item ref="vnItem">
<VNManager ref="vnManager" />
</item>
<code type="init">
useEvent([&]{
assertNotNull(camTexture);