Presentations, create_text_box_overlay

正在查看此主题的用户

Dzen

Recruit
Operation create_text_box_overlay creates text box. How i can get value (string) of that control? Trigger ti_on_presentation_event_state_change fired, but param2 is 0.
 
I'm not sure I understood you correctly... You want to get a string FROM a text_box? If so, then it's not possible. It's only for displaying strings and player can't write any text in it.
 
Slawomir of Aaarrghh 说:
I'm not sure I understood you correctly... You want to get a string FROM a text_box? If so, then it's not possible. It's only for displaying strings and player can't write any text in it.

No. create_text_box_overlay create editable text-box. Problem solved - string in s0 register when trigger fired :smile:

插入代码块:
presentations = [
    ("test_manage", 0, mesh_load_window,[
        (ti_on_presentation_load,
         [
             (set_fixed_point_multiplier, 1000),
             (create_text_box_overlay, "$g_test_text"),
             (position_set_x, pos1, 500),
             (position_set_y, pos1, 600),
             (overlay_set_position, "$g_test_text", pos1),
             (presentation_set_duration, 999999),
             ]
         ),

        (ti_on_presentation_event_state_change,
         [
             (store_trigger_param_1, ":obj"),
              (try_begin),
                (eq, ":obj", "$g_test_text"),
                 (party_set_name, "$g_encountered_party", s0),
             (end_try),
             ]
         ),

      (ti_on_presentation_run,
       [(try_begin),
          (key_clicked, key_escape),
          (presentation_set_duration, 0),
        (try_end),

        ]),
        
        ]
     ),
             
]

In $g_encountered_party - ID of city. Renaming work! :smile:

PS Excuse my english, not native :smile:
 
后退
顶部 底部