ButtonSetTexture( buttonName, buttonState, textureName, x, y )

  • Details last confirmed with client version: 4.0.3.0
  • Allows you to set the current texture of the text within a button.
  • Arguments:
    • buttonName
      • The name of a valid button within an xml file.
      • Type: String
      • Limitations: Must be a valid button name from an xml file
    • buttonState
      • The flag for button state. All I can find is Button.ButtonState.NORMAL.
      • Type: Integer this could also be a String according to default code.
      • Limitations: Must be ba valid button name from an xml file
    • textureName
      • The name of the texture file.
      • Type: String
      • Limitations: Must be a valid String
    • x
      • X location of the texture you wish to use.
      • Type: Integer
      • Limitations: Must be a valid Integer
    • y
      • y location of the texture you wish to use.
      • Type: Integer
      • Limitations: Must be a valid Integer
  • Example:
    • ButtonSetTexture( "myButton", Button.ButtonState.NORMAL, "UO_Core, 45, 165 )