Difference between revisions of "038F"

From GTAMods Wiki
Jump to navigation Jump to search
(page rewrite)
Line 1: Line 1:
'''Number of parameters:''' 2
+
{{Icon|t}} '''LOAD_SPRITE'''
 +
<hr />
 +
'''Description'''
 +
: Loads the texture
 +
'''Syntax'''
 +
: 038F: load_texture "[''string'']" as [''int'']
 +
'''Parameter'''
 +
: [''string'']
 +
:: The name of the texture
 +
: [''int'']
 +
:: Memory slot
  
'''Works in:''' <br>SA
+
This opcode loads the texture from the texture dictionary loaded through opcode [[0390]] into the memory slot. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode [[038D]] is used to draw the texture onto the screen. This opcode was never called in the [[Main.scm|original script]] of GTA III and Vice City.
  
'''Parameters:'''
+
== Keywords ==
 
+
load, texture, txd, sprite
%2 (string) = Text on the image
 
%1 (integer) = Unknown
 
 
 
'''Description:'''
 
 
 
Used to load the 2D menu items used in things like the schools, gambling minigames, etc. As to how they're used once loaded, I'm not sure.
 
 
 
'''Found By:'''
 
 
 
Opius
 
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 00:08, 1 August 2015

GTA III Vice City San Andreas LOAD_SPRITE


Description

Loads the texture

Syntax

038F: load_texture "[string]" as [int]

Parameter

[string]
The name of the texture
[int]
Memory slot

This opcode loads the texture from the texture dictionary loaded through opcode 0390 into the memory slot. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode 038D is used to draw the texture onto the screen. This opcode was never called in the original script of GTA III and Vice City.

Keywords

load, texture, txd, sprite