mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Merge branch 'mkxp-z' into dev
This commit is contained in:
@@ -17,9 +17,9 @@ class Window_DexesList < Window_CommandPokemon
|
||||
def drawItem(index,count,rect)
|
||||
super(index,count,rect)
|
||||
if index>=0 && index<@commands2.length
|
||||
pbDrawShadowText(self.contents,rect.x+254,rect.y,64,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x+254,rect.y + (mkxp? ? 6 : 0),64,rect.height,
|
||||
sprintf("%d",@commands2[index][0]),self.baseColor,self.shadowColor,1)
|
||||
pbDrawShadowText(self.contents,rect.x+350,rect.y,64,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x+350,rect.y + (mkxp? ? 6 : 0),64,rect.height,
|
||||
sprintf("%d",@commands2[index][1]),self.baseColor,self.shadowColor,1)
|
||||
allseen = (@commands2[index][0]>=@commands2[index][2])
|
||||
allown = (@commands2[index][1]>=@commands2[index][2])
|
||||
|
||||
@@ -45,7 +45,7 @@ class Window_Pokedex < Window_DrawableCommand
|
||||
else
|
||||
text = sprintf("%03d ----------",indexNumber)
|
||||
end
|
||||
pbDrawShadowText(self.contents,rect.x+36,rect.y+6,rect.width,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x+36,rect.y+6 + (mkxp? ? 6 : 0),rect.width,rect.height,
|
||||
text,self.baseColor,self.shadowColor)
|
||||
end
|
||||
|
||||
|
||||
@@ -122,7 +122,8 @@ class Window_CommandPokemonColor < Window_CommandPokemon
|
||||
base = Color.new(0,80,160)
|
||||
shadow = Color.new(128,192,240)
|
||||
end
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y,rect.width,rect.height,@commands[index],base,shadow)
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,
|
||||
@commands[index],base,shadow)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -398,7 +399,7 @@ class PokemonPartyPanel < SpriteWrapper
|
||||
"Graphics/Pictures/Party/overlay_lv",20,70,0,0,22,14]])
|
||||
pbSetSmallFont(@overlaysprite.bitmap)
|
||||
pbDrawTextPositions(@overlaysprite.bitmap,[
|
||||
[@pokemon.level.to_s,42,62,0,basecolor,shadowcolor]
|
||||
[@pokemon.level.to_s,42,63,0,basecolor,shadowcolor]
|
||||
])
|
||||
end
|
||||
# Draw annotation text
|
||||
|
||||
@@ -259,8 +259,7 @@ class PokemonLoadScreen
|
||||
savefile = RTP.getSaveFileName("Game.rxdata")
|
||||
FontInstaller.install
|
||||
data_system = pbLoadRxData("Data/System")
|
||||
mapfile = ($RPGVX) ? sprintf("Data/Map%03d.rvdata",data_system.start_map_id) :
|
||||
sprintf("Data/Map%03d.rxdata",data_system.start_map_id)
|
||||
mapfile = sprintf("Data/Map%03d.rxdata",data_system.start_map_id)
|
||||
if data_system.start_map_id==0 || !pbRgssExists?(mapfile)
|
||||
pbMessage(_INTL("No starting position was set in the map editor.\1"))
|
||||
pbMessage(_INTL("The game cannot continue."))
|
||||
|
||||
@@ -331,7 +331,8 @@ class Window_PokemonOption < Window_DrawableCommand
|
||||
rect = drawCursor(index,rect)
|
||||
optionname = (index==@options.length) ? _INTL("Cancel") : @options[index].name
|
||||
optionwidth = rect.width*9/20
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y,optionwidth,rect.height,optionname,
|
||||
text_y = rect.y + (mkxp? ? 6 : 0)
|
||||
pbDrawShadowText(self.contents,rect.x,text_y,optionwidth,rect.height,optionname,
|
||||
@nameBaseColor,@nameShadowColor)
|
||||
return if index==@options.length
|
||||
if @options[index].is_a?(EnumOption)
|
||||
@@ -345,7 +346,7 @@ class Window_PokemonOption < Window_DrawableCommand
|
||||
xpos = optionwidth+rect.x
|
||||
ivalue = 0
|
||||
for value in @options[index].values
|
||||
pbDrawShadowText(self.contents,xpos,rect.y,optionwidth,rect.height,value,
|
||||
pbDrawShadowText(self.contents,xpos,text_y,optionwidth,rect.height,value,
|
||||
(ivalue==self[index]) ? @selBaseColor : self.baseColor,
|
||||
(ivalue==self[index]) ? @selShadowColor : self.shadowColor
|
||||
)
|
||||
@@ -354,14 +355,14 @@ class Window_PokemonOption < Window_DrawableCommand
|
||||
ivalue += 1
|
||||
end
|
||||
else
|
||||
pbDrawShadowText(self.contents,rect.x+optionwidth,rect.y,optionwidth,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x+optionwidth,text_y,optionwidth,rect.height,
|
||||
optionname,self.baseColor,self.shadowColor)
|
||||
end
|
||||
elsif @options[index].is_a?(NumberOption)
|
||||
value = _INTL("Type {1}/{2}",@options[index].optstart+self[index],
|
||||
@options[index].optend-@options[index].optstart+1)
|
||||
xpos = optionwidth+rect.x
|
||||
pbDrawShadowText(self.contents,xpos,rect.y,optionwidth,rect.height,value,
|
||||
pbDrawShadowText(self.contents,xpos,text_y,optionwidth,rect.height,value,
|
||||
@selBaseColor,@selShadowColor)
|
||||
elsif @options[index].is_a?(SliderOption)
|
||||
value = sprintf(" %d",@options[index].optend)
|
||||
@@ -375,12 +376,12 @@ class Window_PokemonOption < Window_DrawableCommand
|
||||
8,16,@selBaseColor)
|
||||
value = sprintf("%d",@options[index].optstart+self[index])
|
||||
xpos += optionwidth-self.contents.text_size(value).width
|
||||
pbDrawShadowText(self.contents,xpos,rect.y,optionwidth,rect.height,value,
|
||||
pbDrawShadowText(self.contents,xpos,text_y,optionwidth,rect.height,value,
|
||||
@selBaseColor,@selShadowColor)
|
||||
else
|
||||
value = @options[index].values[self[index]]
|
||||
xpos = optionwidth+rect.x
|
||||
pbDrawShadowText(self.contents,xpos,rect.y,optionwidth,rect.height,value,
|
||||
pbDrawShadowText(self.contents,xpos,text_y,optionwidth,rect.height,value,
|
||||
@selBaseColor,@selShadowColor)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -413,7 +413,8 @@ class PokemonBoxSprite < SpriteWrapper
|
||||
pbSetSystemFont(@contents)
|
||||
widthval = @contents.text_size(boxname).width
|
||||
xval = 162-(widthval/2)
|
||||
pbDrawShadowText(@contents,xval,8,widthval,32,boxname,Color.new(248,248,248),Color.new(40,48,48))
|
||||
pbDrawShadowText(@contents,xval,8 + (mkxp? ? 6 : 0),widthval,32,
|
||||
boxname,Color.new(248,248,248),Color.new(40,48,48))
|
||||
@refreshBox = false
|
||||
end
|
||||
yval = self.y+30
|
||||
@@ -536,7 +537,7 @@ class PokemonBoxPartySprite < SpriteWrapper
|
||||
def refresh
|
||||
@contents.blt(0,0,@boxbitmap.bitmap,Rect.new(0,0,172,352))
|
||||
pbDrawTextPositions(self.bitmap,[
|
||||
[_INTL("Back"),86,242,2,Color.new(248,248,248),Color.new(80,80,80),1]
|
||||
[_INTL("Back"),86,242 - (mkxp? ? 2 : 0),2,Color.new(248,248,248),Color.new(80,80,80),1]
|
||||
])
|
||||
|
||||
xvalues = [18,90,18,90,18,90]
|
||||
@@ -1384,8 +1385,8 @@ class PokemonStorageScene
|
||||
buttonbase = Color.new(248,248,248)
|
||||
buttonshadow = Color.new(80,80,80)
|
||||
pbDrawTextPositions(overlay,[
|
||||
[_INTL("Party: {1}",(@storage.party.length rescue 0)),270,328,2,buttonbase,buttonshadow,1],
|
||||
[_INTL("Exit"),446,328,2,buttonbase,buttonshadow,1],
|
||||
[_INTL("Party: {1}",(@storage.party.length rescue 0)),270,328 - (mkxp? ? 2 : 0),2,buttonbase,buttonshadow,1],
|
||||
[_INTL("Exit"),446,328 - (mkxp? ? 2 : 0),2,buttonbase,buttonshadow,1],
|
||||
])
|
||||
pokemon = nil
|
||||
if @screen.pbHeldPokemon
|
||||
|
||||
@@ -85,7 +85,7 @@ end
|
||||
|
||||
|
||||
#===============================================================================
|
||||
# Abstraction layer for RPG Maker XP/VX
|
||||
# Abstraction layer for RPG Maker XP
|
||||
# Won't be used if $PokemonBag exists
|
||||
#===============================================================================
|
||||
class RpgxpMartAdapter
|
||||
@@ -884,33 +884,3 @@ class Interpreter
|
||||
setPrice(item,-1,sellprice)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
class Game_Interpreter
|
||||
def getItem(p)
|
||||
if p[0]==0; return $data_items[p[1]]
|
||||
elsif p[0]==1; return $data_weapons[p[1]]
|
||||
elsif p[0]==2; return $data_armors[p[1]]
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
def command_302
|
||||
shop_goods = [getItem(@params)]
|
||||
# Loop
|
||||
loop do
|
||||
# Advance index
|
||||
@index += 1
|
||||
# If next event command has shop on second line or after
|
||||
if @list[@index].code == 605
|
||||
# Add goods list to new item
|
||||
shop_goods.push(getItem(@list[@index].parameters))
|
||||
else
|
||||
# End
|
||||
pbPokemonMart(shop_goods.compact,nil,@params[2])
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user