bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Multiple mention of missing parameters

Open GWRon opened this issue 4 years ago • 0 comments

I tried to compile - accidentally leaving out parameters. I have various overloads for many combinations of "left out" parameters.

It seems bcc accidentally spit out the error for "each" one (without mentioning the individual overload which misses the parameter):

Compile Error: Unable to find overload for drawbox(String,Int,Int,Int,Int). Missing function parameter 'color'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'color'Missing function parameter 'color'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'Missing function parameter 'alignment'

My overloads:

Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, color:SColor8)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, settings:SDrawTextSettings Var)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, parseInfo:STextParseInfo Var)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8,  parseInfo:STextParseInfo Var, effect:TDrawTextEffect)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8,  parseInfo:STextParseInfo Var, effect:SDrawTextEffect Var)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8,  parseInfo:STextParseInfo Var, effectMode:EDrawTextEffect, effectValue:Float = -1.0)	
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, color:SColor8,  parseInfo:STextParseInfo Var, effectMode:EDrawTextEffect, effectValue:Float = -1.0)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, color:SColor8, handle:SVec2F, options:EDrawTextOption = EDrawTextOption.None)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, options:EDrawTextOption = EDrawTextOption.None)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, options:EDrawTextOption = EDrawTextOption.None, settings:TDrawTextSettings)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, options:EDrawTextOption = EDrawTextOption.None, settings:SDrawTextSettings Var)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, effect:SDrawTextEffect)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, effectMode:EDrawTextEffect, effectValue:Float = -1.0)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, effectMode:EDrawTextEffect, effectValue:Float = -1.0)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, parseInfo:STextParseInfo Var, options:EDrawTextOption = EDrawTextOption.None)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, options:EDrawTextOption = EDrawTextOption.None, effect:SDrawTextEffect var, settings:SDrawTextSettings var, limitFirstElement:Int = -1, limitLastElement:Int = -1)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, parseInfo:TTextParseInfo, options:EDrawTextOption = EDrawTextOption.None, effect:TDrawTextEffect, settings:TDrawTextSettings, limitFirstElement:Int = -1, limitLastElement:Int = -1)
Method DrawBox:SVec2I(txt:String,x:Float,y:Float,w:Float,h:Float, alignment:SVec2F, color:SColor8, handle:SVec2F, parseInfo:STextParseInfo Var, options:EDrawTextOption = EDrawTextOption.None, effect:SDrawTextEffect var, settings:SDrawTextSettings var, limitFirstElement:Int = -1, limitLastElement:Int = -1)

call (with missing params):

GetBitmapFont("default", 10).DrawBox(upcomingEvent[i].GetTitle(), 20+130, 60 + 24*i + 12, 200, 15, )

GWRon avatar Oct 23 '20 12:10 GWRon