Hi, I just got extends a few days ago and it is brillant! The xgui system is very nice and I love the real time sky.
Please add these commands to extends some day:
XGUI CENTER WINDOW WindowNumber
WindowNumber = XGUI CREATE WINDOW Width, Height, Flag
GadgetNumber = XGUI ADD GADGET WindowNumber, X, Y, Width, Height, ImageNumber
Boolean = XGUI MOUSE OVER WINDOW WindowNumber
WindowHidth = XGUI GET WINDOW WIDTH WindowNumber
WindowHeight = XGUI GET WINDOW HEIGHT WindowNumber
I think commands to get the width and height and/or if the mouse is over the window would be VERY useful in creating effects like this:
set bitmap format 21
randomize timer()
sync on
sync rate 0
xgui enable alpha window
null = xgui setup("AncientBlue.skin")
xgui create window 1, 400, 200
xgui position window 1, 200, 200
xgui set window title 1, "The Awesome Fading XGui Window!"
local alpha as byte
alpha = 150
do
if xgui_mouse_over_window(1)
if alpha < 255 then inc alpha
else
if alpha > 150 then dec alpha
endif
xgui set alpha 1, alpha
xgui update
sync
loop
compiler_directives:
`these commands are included to trick the compiler into
`putting the dlls the plugins need into the exe
`eXtends plugin
null = object exist(1)
null = sprite exist(1)
null = image exist(1)
null = bitmap exist(1)
null = file exist("")
null = ext initialized()
null = img initialized()
null = spr initialized()
null = str initialized()
null = bmp initialized()
null = mouseclick()
function xgui_mouse_over_window(window)
if mousex() > xgui get window xpos(window)
if mousey() > xgui get window ypos(window)
exitfunction 1
endif
endif
endfunction 0
But since I can't get the width and height it's a little buggy.
BitmapFontNumber = XFONT SETUP FONT BitmapFontFile$, Size, Firstchar, Flag
TextString$ = STR RTRIM TextString$
TextString$ = STR LTRIM TextString$
TextString$ = STR TRIM TextString$
TextString$ = STR GET BETWEEN TextString$, StartPosition, EndPosition
By the way the chat system does not work for me at all.
Also, I've noticed a bug in str get middle, it seems to return 1 more than the length if length is greater than 1. See this code:
print "String: Hamburger"
print "Printing 2 characters from position 4: " + str get middle("Hamburger", 4, 2)
wait key
end
complier_directives:
null = ext initialized()
null = str initialized()
With length set at 2 it returns 3 characters, but if you set the length to 1 it only returns 1 character.
Beyond this place there be dragons.