Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions data/client/client.scripts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ id = 109
[string_entry]
id = 110

[set_entry_string]
id = 1564

[dialogue_item_zoom]
id = 3449

Expand Down
25 changes: 24 additions & 1 deletion data/entity/player/modal/tab/notes/notes.ifaces.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,33 @@
id = 34
type = "notes_tab"

[.add]
id = 3

[.delete]
id = 8

[.notes]
id = 9
options = { Option1 = 0, Option2 = 1, Option3 = 2, Option4 = 3, Option5 = 18, Option6 = 20 }
options = { Select = 0, Edit = 1, Colour = 2, Delete = 3, Option5 = 18, Option6 = 20 }

[.colours]
id = 16

[.white]
id = 35

[.green]
id = 37

[.amber]
id = 39

[.red]
id = 41

[.close]
id = 43

[.overlay]
id = 44
8 changes: 8 additions & 0 deletions data/entity/player/modal/tab/notes/notes.scripts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[clear_notes]
id = 2442

[close_note_colours]
id = 2456

[show_notes]
id = 2444
120 changes: 120 additions & 0 deletions data/entity/player/modal/tab/notes/notes.strings.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Script 2452
[note_0]
id = 149
persist = true

[note_1]
id = 150
persist = true

[note_2]
id = 151
persist = true

[note_3]
id = 152
persist = true

[note_4]
id = 153
persist = true

[note_5]
id = 154
persist = true

[note_6]
id = 155
persist = true

[note_7]
id = 156
persist = true

[note_8]
id = 157
persist = true

[note_9]
id = 158
persist = true

[note_10]
id = 159
persist = true

[note_11]
id = 160
persist = true

[note_12]
id = 161
persist = true

[note_13]
id = 162
persist = true

[note_14]
id = 163
persist = true

[note_15]
id = 164
persist = true

[note_16]
id = 165
persist = true

[note_17]
id = 166
persist = true

[note_18]
id = 167
persist = true

[note_19]
id = 168
persist = true

[note_20]
id = 169
persist = true

[note_21]
id = 170
persist = true

[note_22]
id = 171
persist = true

[note_23]
id = 172
persist = true

[note_24]
id = 173
persist = true

[note_25]
id = 174
persist = true

[note_26]
id = 175
persist = true

[note_27]
id = 176
persist = true

[note_28]
id = 177
persist = true

[note_29]
id = 178
persist = true
149 changes: 149 additions & 0 deletions data/entity/player/modal/tab/notes/notes.varbits.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
[note_colour_0]
id = 6316
format = "int"
persist = true

[note_colour_1]
id = 6317
format = "int"
persist = true

[note_colour_2]
id = 6318
format = "int"
persist = true

[note_colour_3]
id = 6319
format = "int"
persist = true

[note_colour_4]
id = 6320
format = "int"
persist = true

[note_colour_5]
id = 6321
format = "int"
persist = true

[note_colour_6]
id = 6322
format = "int"
persist = true

[note_colour_7]
id = 6323
format = "int"
persist = true

[note_colour_8]
id = 6324
format = "int"
persist = true

[note_colour_9]
id = 6325
format = "int"
persist = true

[note_colour_10]
id = 6326
format = "int"
persist = true

[note_colour_11]
id = 6327
format = "int"
persist = true

[note_colour_12]
id = 6328
format = "int"
persist = true

[note_colour_13]
id = 6329
format = "int"
persist = true

[note_colour_14]
id = 6330
format = "int"
persist = true

[note_colour_15]
id = 6331
format = "int"
persist = true

[note_colour_16]
id = 6332
format = "int"
persist = true

[note_colour_17]
id = 6333
format = "int"
persist = true

[note_colour_18]
id = 6334
format = "int"
persist = true

[note_colour_19]
id = 6335
format = "int"
persist = true

[note_colour_20]
id = 6336
format = "int"
persist = true

[note_colour_21]
id = 6337
format = "int"
persist = true

[note_colour_22]
id = 6338
format = "int"
persist = true

[note_colour_23]
id = 6339
format = "int"
persist = true

[note_colour_24]
id = 6340
format = "int"
persist = true

[note_colour_25]
id = 6341
format = "int"
persist = true

[note_colour_26]
id = 6342
format = "int"
persist = true

[note_colour_27]
id = 6343
format = "int"
persist = true

[note_colour_28]
id = 6344
format = "int"
persist = true

[note_colour_29]
id = 6345
format = "int"
persist = true
8 changes: 8 additions & 0 deletions data/entity/player/modal/tab/notes/notes.varps.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[notes_active]
id = 1437
format = "boolean"

[selected_note]
id = 1439
default = -1
format = "int"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import world.gregs.voidps.engine.client.sendScript
import world.gregs.voidps.engine.entity.character.player.Player
import world.gregs.voidps.engine.suspend.StringSuspension

suspend fun Player.stringEntry(text: String): String {
suspend fun Player.stringEntry(text: String, placeholder: String? = null): String {
sendScript("string_entry", text)
if (placeholder != null) {
sendScript("set_entry_string", placeholder)
}
return StringSuspension.get(this)
}
Loading
Loading