screpl.plugins.trigger.editor module

Defines TriggerEditorApp

class screpl.plugins.trigger.editor. TriggerEditorApp [source]

Bases: screpl.core.application.Application

Show trigger and modify trigger

Expected TUI

TrigEditorApp ptr=%H, next=%H
Conditions:
    ...
Actions:
    ...

Application Fields

trig_ptr
trig_epd
trig_type
trig_epdsize
cond_epd
act_epd
flag_epd
olddb_epd
cond_count
act_count
condtext_table_epd
acttext_table_epd
tab
index

Application Methods

index

methods

0

screpl.plugins.trigger.editor.TriggerEditorApp.loop()

1

screpl.core.application.Application.on_chat()

2

screpl.plugins.trigger.editor.TriggerEditorApp.on_destruct()

3

screpl.plugins.trigger.editor.TriggerEditorApp.on_init()

4

screpl.core.application.Application.on_resume()

5

screpl.plugins.trigger.editor.TriggerEditorApp.print()

6

screpl.plugins.trigger.editor.TriggerEditorApp.update_index()

7

screpl.plugins.trigger.editor.TriggerEditorApp.update_text()

loop ( self )

AppMethodN (index=0)

on_destruct ( self )

AppMethodN (index=2)

on_init ( self )

AppMethodN (index=3)

print ( self , writer )

AppMethodN (index=5)

update_index ( self , index )

AppMethodN (index=6) - Update index with given valid index

update_text ( self )

AppMethodN (index=7) - Update cached text for TUI

new ( self , ptr )

AppCommandN - Start a new app with given ptr, link type

AppCommandN - Start a new app with given ptr, nolink type

next ( self )

AppCommandN - Set trigger pointer of current app to next trigger pointer

setflag ( self , value )

AppCommandN - Update flag of current trigger with given value

setp ( self , ptr )

AppCommandN - Set trigger pointer of current app to given argument

static set_trig_epd ( trig_epd , nolink = False ) [source]

Set initializing variable with epd

Parameters

nolink ( bool ) – set trigger type. True for 2400 byte trigger, without trigger pointer links. False for 2408 byte trigger, with trigger pointer links.

static set_trig_ptr ( trig_ptr , nolink = False ) [source]

Set initializing variable with pointer

Parameters

nolink ( bool ) – set trigger type. True for 2400 byte trigger, without trigger pointer links. False for 2408 byte trigger, with trigger pointer links.