screpl.apps.chatreader module ¶
defines ChatReaderApp
-
class
screpl.apps.chatreader.
ChatReaderApp
[source] ¶ -
Bases:
screpl.core.application.Application
Receives user’s chat and write to specific offset
Text UI:
ChatReader Your input: '{Content}' [ OK (CTRL+Y) ] [ CANCEL (CTRL+N) ]
Application usage to store text from user:
my_database = Db(220) ChatReaderApp.set_return_epd(EPD(my_database)) app_manager.start_application(ChatReaderApp) # Then, ChatReaderApp runs, and it stores text to my_database
Application Fields
Application Methods
index
methods
0
1
2
3
4
5
-
loop
( self ) ¶ -
AppMethodN
(index=0)
-
on_chat
( self , address ) ¶ -
AppMethodN
(index=1) - Receives chat to store to temporary storage
-
on_destruct
( self ) ¶ -
AppMethodN
(index=2)
-
on_init
( self ) ¶ -
AppMethodN
(index=3) - Initialize applicationIt makes writer to focus return address
-
print
( self , writer ) ¶ -
AppMethodN
(index=5)
-
static
set_return_address
( addr ) [source] ¶ -
Set target address to store text from chat
Call this before
start_application()
- Parameters
-
addr (int,
ConstExpr
, orEUDVariable
) – target address
-
static
set_return_epd
( epd ) [source] ¶ -
Set epd value of target address to store text from chat
Call this before
start_application()
- Parameters
-
epd (int,
ConstExpr
, orEUDVariable
) – EPD value of target address
-