GS-Zone

DX8 - Iluminar Inventario Ir al Indice

Moderadores: Moderadores de Argentum, Especialistas de Argentum, Especialistas de Programación

16

Nota » 15 Mar 2011 13:51

Lo pueden hacer así tambien
  1. Public Sub Draw_GrhIndex(ByVal grh_index As Integer, ByVal X As Integer, ByVal y As Integer, Optional ByVal alpha As Boolean)
  2.     If grh_index <= 0 Then Exit Sub
  3.     Dim rgb_list(3) As Long
  4.    
  5.     If Not alpha = True Then
  6.     rgb_list(0) = D3DColorXRGB(255, 255, 255)
  7.     rgb_list(1) = D3DColorXRGB(255, 255, 255)
  8.     rgb_list(2) = D3DColorXRGB(255, 255, 255)
  9.     rgb_list(3) = D3DColorXRGB(255, 255, 255)
  10.     Device_Box_Textured_Render grh_index, _
  11.         X, y, _
  12.         GrhData(grh_index).pixelWidth, GrhData(grh_index).pixelHeight, _
  13.         rgb_list, _
  14.         GrhData(grh_index).sX, GrhData(grh_index).sY
  15.     Else
  16.     rgb_list(0) = D3DColorXRGB(100, 100, 100)
  17.     rgb_list(1) = D3DColorXRGB(100, 100, 100)
  18.     rgb_list(2) = D3DColorXRGB(100, 100, 100)
  19.     rgb_list(3) = D3DColorXRGB(100, 100, 100)
  20.     Device_Box_Textured_Render grh_index, _
  21.         X, y, _
  22.         GrhData(grh_index).pixelWidth, GrhData(grh_index).pixelHeight, _
  23.         rgb_list, _
  24.         GrhData(grh_index).sX, GrhData(grh_index).sY, True
  25.     End If
  26. End Sub


Y a los draw_grhindex al final le ponen ,true o ,false para iluminar o no ajaj

Bah, es lo mismo, saludos !
All we need is love
475
Oraculo [5]
Registrado: Años de membresíaAños de membresía
Ubicación: Mar del Plata
Mensajes: 2001
Aportes: 30
Premios: 1
Mister Programador AO (1)

Anterior

Volver a AO 0.12.x

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados