mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-21 21:56:01 +00:00
Killed off RGSS, deleted font installer code
This commit is contained in:
@@ -387,11 +387,11 @@ def pbSetSystemFont(bitmap)
|
||||
fontname = MessageConfig.pbGetSystemFontName
|
||||
bitmap.font.name = fontname
|
||||
if fontname == "Pokemon FireLeaf" || fontname == "Power Red and Green"
|
||||
bitmap.font.size = mkxp? ? 27 : 29
|
||||
bitmap.font.size = 27
|
||||
elsif fontname == "Pokemon Emerald Small" || fontname == "Power Green Small"
|
||||
bitmap.font.size = mkxp? ? 29 : 25
|
||||
bitmap.font.size = 29
|
||||
else
|
||||
bitmap.font.size = mkxp? ? 29 : 31
|
||||
bitmap.font.size = 29
|
||||
end
|
||||
end
|
||||
|
||||
@@ -404,7 +404,7 @@ end
|
||||
# Sets a bitmap's font to the system narrow font.
|
||||
def pbSetNarrowFont(bitmap)
|
||||
bitmap.font.name = pbNarrowFontName
|
||||
bitmap.font.size = mkxp? ? 29 : 31
|
||||
bitmap.font.size = 29
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
|
||||
@@ -71,7 +71,7 @@ class Window_UnformattedTextPokemon < SpriteWindow_Base
|
||||
def resizeHeightToFit(text,width=-1) # width is current window width
|
||||
dims=resizeToFitInternal(text,width)
|
||||
self.width=width<0 ? Graphics.width : width
|
||||
self.height = dims[1] + self.borderY - (mkxp? ? 4 : 0)
|
||||
self.height = dims[1] + self.borderY - 4
|
||||
refresh
|
||||
end
|
||||
|
||||
@@ -1227,7 +1227,7 @@ class Window_CommandPokemon < Window_DrawableCommand
|
||||
def drawItem(index,_count,rect)
|
||||
pbSetSystemFont(self.contents) if @starting
|
||||
rect=drawCursor(index,rect)
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,
|
||||
@commands[index],self.baseColor,self.shadowColor)
|
||||
end
|
||||
end
|
||||
@@ -1331,7 +1331,7 @@ class Window_AdvancedCommandPokemon < Window_DrawableCommand
|
||||
dims=[]
|
||||
getAutoDims(commands,dims,width)
|
||||
self.width=dims[0]
|
||||
self.height=dims[1] - (mkxp? ? 6 : 0)
|
||||
self.height=dims[1] - 6
|
||||
end
|
||||
|
||||
def itemCount
|
||||
@@ -1343,7 +1343,7 @@ class Window_AdvancedCommandPokemon < Window_DrawableCommand
|
||||
rect=drawCursor(index,rect)
|
||||
if toUnformattedText(@commands[index]).gsub(/\n/,"")==@commands[index]
|
||||
# Use faster alternative for unformatted text without line breaks
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,
|
||||
@commands[index],self.baseColor,self.shadowColor)
|
||||
else
|
||||
chars=getFormattedText(
|
||||
|
||||
@@ -168,7 +168,7 @@ end
|
||||
|
||||
def getFormattedTextFast(bitmap,xDst,yDst,widthDst,heightDst,text,lineheight,
|
||||
newlineBreaks=true,explicitBreaksOnly=false)
|
||||
yDst += 4 if mkxp?
|
||||
yDst += 4
|
||||
x=y=0
|
||||
characters=[]
|
||||
textchunks=[]
|
||||
@@ -422,7 +422,7 @@ _drawFormattedChars_ function.
|
||||
def getFormattedText(bitmap,xDst,yDst,widthDst,heightDst,text,lineheight=32,
|
||||
newlineBreaks=true,explicitBreaksOnly=false,
|
||||
collapseAlignments=false)
|
||||
yDst += 4 if mkxp?
|
||||
yDst += 4
|
||||
dummybitmap=nil
|
||||
if !bitmap || bitmap.disposed? # allows function to be called with nil bitmap
|
||||
dummybitmap=Bitmap.new(1,1)
|
||||
@@ -890,7 +890,7 @@ end
|
||||
#===============================================================================
|
||||
def getLineBrokenChunks(bitmap,value,width,dims,plain=false)
|
||||
x=0
|
||||
y=mkxp? ? 4: 0
|
||||
y=4
|
||||
ret=[]
|
||||
if dims
|
||||
dims[0]=0
|
||||
@@ -1109,7 +1109,7 @@ def pbDrawShadowText(bitmap,x,y,width,height,string,baseColor,shadowColor=nil,al
|
||||
return if !bitmap || !string
|
||||
width=(width<0) ? bitmap.text_size(string).width+1 : width
|
||||
height=(height<0) ? bitmap.text_size(string).height+1 : height
|
||||
y += -2 if mkxp?
|
||||
y += -2
|
||||
if shadowColor && shadowColor.alpha>0
|
||||
bitmap.font.color=shadowColor
|
||||
bitmap.draw_text(x+2,y,width,height,string,align)
|
||||
@@ -1157,7 +1157,7 @@ def pbDrawTextPositions(bitmap,textpos)
|
||||
for i in textpos
|
||||
textsize = bitmap.text_size(i[0])
|
||||
x = i[1]
|
||||
y = i[2] + (mkxp? ? 6 : 0)
|
||||
y = i[2] + 6
|
||||
if i[3]==true || i[3]==1 # right align
|
||||
x -= textsize.width
|
||||
elsif i[3]==2 # centered
|
||||
|
||||
@@ -49,16 +49,16 @@ class Window_CharacterEntry < Window_DrawableCommand
|
||||
def drawItem(index,_count,rect)
|
||||
rect=drawCursor(index,rect)
|
||||
if index==@charset.length # -1
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,"[ ]",
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,"[ ]",
|
||||
self.baseColor,self.shadowColor)
|
||||
elsif index==@charset.length+1 # -2
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,@othercharset,
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,@othercharset,
|
||||
self.baseColor,self.shadowColor)
|
||||
elsif index==@charset.length+2 # -3
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,_INTL("OK"),
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,_INTL("OK"),
|
||||
self.baseColor,self.shadowColor)
|
||||
else
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + (mkxp? ? 6 : 0),rect.width,rect.height,@charset[index],
|
||||
pbDrawShadowText(self.contents,rect.x,rect.y + 6,rect.width,rect.height,@charset[index],
|
||||
self.baseColor,self.shadowColor)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user