Skip to content

gui

GUI Events

Window Opened

  • Description: Window opened
  • Parameters:
  • window: Window - The opened window
  • Usage:
    Python
    @client.event
    async def on_window_opened(window: Window) -> None:
        ...
    

Window Closed

  • Description: Window closed
  • Parameters:
  • window_id: int - ID of closed window
  • Usage:
    Python
    @client.event
    async def on_window_closed(window_id: int) -> None:
        ...
    

Window Items Updated

  • Description: Window items updated
  • Parameters:
  • window: Window - The updated window
  • Usage:
    Python
    @client.event
    async def on_window_items_updated(window: Window) -> None:
        ...
    

Window Property Changed

  • Description: Window property changed
  • Parameters:
  • window: Window - The window
  • property_id: int - Property ID
  • value: int - New property value
  • Usage:
    Python
    @client.event
    async def on_window_property_changed(window: Window, property_id: int, value: int) -> None:
        ...
    

Inventory Transactions

Transaction Confirmed

Note

The client automatically confirms transactions.

  • Description: Window transaction confirmed
  • Note: Client automatically confirms transactions.
  • Parameters:
  • window_id: int - Window ID
  • action_number: int - Action number
  • accepted: bool - Whether action was accepted
  • Usage:
    Python
    @client.event
    async def on_transaction_confirmed(window_id: int, action_number: int, accepted: bool) -> None:
        ...
    

Craft Recipe Response

  • Description: Crafting recipe response
  • Parameters:
  • window: Window - The crafting window
  • recipe: int - Recipe ID
  • Usage:
    Python
    @client.event
    async def on_craft_recipe_response(window: Window, recipe: int) -> None:
        ...
    

Set Cooldown

  • Description: Item cooldown started
  • Parameters:
  • item_id: int - Item ID
  • ticks: int - Cooldown duration in ticks
  • Usage:
    Python
    @client.event
    async def on_set_cooldown(item_id: int, ticks: int) -> None:
        ...