Wishlist for PureBasic v4.0

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

dagcrack wrote:Let's add 7up too!
:D
@}--`--,-- A rose by any other name ..
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Let's add 7up too!
well.. I vote for 7zip but only if it adds just a few KBs to the exe and not 200KBs Razz - Let's add 7up too!
appearently only in light or diet versions...

:-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

:lol:
(Sorry, i wasted one more useless post) :oops:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

Please add optional color parameters (single color or R, G and B severally) to some sprite commands:

ClearScreen(R, G, B) and/or ClearScreen(RGB.l)
TransparentSpriteColor(SpriteID.l, R, G, B) and/or TransparentSpriteColor(SpriteID.l, RGB.l)
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

Lebostein wrote:Please add optional color parameters (single color or R, G and B severally) to some sprite commands:

ClearScreen(R, G, B) and/or ClearScreen(RGB.l)
TransparentSpriteColor(SpriteID.l, R, G, B) and/or TransparentSpriteColor(SpriteID.l, RGB.l)
i think the best and most easy way would be to have for all commands needing colorparameter, to use a a long as colorvalue instead a byte for each color... for example...

ClearScreen(lColorRGBA) or...
ClearScreen(RGBA(255,255,255,255)

instead of RGB it would be nice to have RGBA(r,g,b,a) that works for any color agrument...

but when fred would change this, this will break the compatible to all old sources... ;/
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

i know i have requested this somewhere around 2002/2003... what do you think about command to set the x and y position for handling 2D/3D sprites?

I think this could be usefull for example, when you have a 3D sprite and want to rotate the sprite itself but not at position 0,0 - futuremore set the x,y handle to middle, so we have a nice rotation about its own "middle" axes...

SetSprite3DHandle(#Sprite3D,lXPos,lYPos)
RotateSprite3D(#Sprite3D, Winkel, Mode)

some more people here are interested in this feature?
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Post by akee »

As for me, 3 items...

1. Don't forget the NOT operator.
2. Some cleaning up of the Gadget would be nice. Ex Option Gadget Terminator and for only 1 ID per Option Gadget List. Ex.

Code: Select all

#MYOPTIONGADGET = 45
OptionGadgetBegin(#MYOPTIONGADGET)
  AddItem(10, 10, 1, "Option 1")
  AddItem(10, 40, 2, "Option 2", #True)    ; default selected
  AddItem(10, 70, 3, "Option 3")
  AddItem(10, 100, 7, "Option with value 7")
OptionGadgetEnd()
3. Allow optional parameters for procedures.

Code: Select all

Procedure MyFunc(name.s, tel.s, optional address.s = "N/A")
...
EndProcedure

MyFunc("Albert", "123", "USA")
MyFunc("Alan", "321")
MyFunc("Andy", "911", ":)")
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Just a little change in keyboard and mouse button checking:
Keyboard(KeyID [, Mode])
Mouse(ButtonNumber [, Mode])

Where mode can be #Pressed, #Down or #Released
Default is #Down


Example:

Code: Select all

If Keyboard(#PB_Key_Up)
  ;do something
EndIf
If Mouse(#PB_MouseButton_Left,#Released)
  ;do something
EndIf
I think this syntax make more sence :)
I like logic, hence I dislike humans but love computers.
Post Reply