mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 07:37:00 +00:00
Update 6.8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class TrainerClothesPreview
|
||||
attr_writer :pokeball, :clothes, :hat, :hat2, :hair, :skin_tone, :hair_color, :hat_color,:hat2_color, :clothes_color
|
||||
|
||||
def initialize(x = 0, y = 0, windowed = true, pokeball = nil)
|
||||
def initialize(x = 0, y = 0, windowed = true, pokeball = nil, is_trainer = true)
|
||||
@playerBitmap = nil
|
||||
@playerSprite = nil
|
||||
@x_pos = x
|
||||
@@ -9,6 +9,7 @@ class TrainerClothesPreview
|
||||
@windowed = windowed
|
||||
|
||||
@pokeball = pokeball
|
||||
@is_trainer = is_trainer
|
||||
resetOutfits()
|
||||
end
|
||||
|
||||
@@ -28,6 +29,10 @@ class TrainerClothesPreview
|
||||
end
|
||||
end
|
||||
|
||||
def set_trainer(value)
|
||||
@is_trainer = value
|
||||
end
|
||||
|
||||
def resetOutfits()
|
||||
@clothes = $Trainer.clothes
|
||||
@hat = $Trainer.hat
|
||||
@@ -46,7 +51,8 @@ class TrainerClothesPreview
|
||||
@clothes,
|
||||
@hat,@hat2, @hair,
|
||||
@skin_tone,
|
||||
@hair_color, @hat_color, @clothes_color, @hat2_color)
|
||||
@hair_color, @hat_color, @clothes_color, @hat2_color,
|
||||
@is_trainer)
|
||||
initialize_preview()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user