![]() |
News-Window
I hope you like this news window.
You can list News/Updates, Hiring infos and currently staffs. Thats my first post, so dont bee too hard. PHP Code:
|
Good Job, looks quite professional. =]
styling tip : With multiple vars that are being set to the same thing you can just use '=' ie PHP Code:
position = { x, y}; extent = { width, height}; in this format you can do operations which you can't do in the "x y" format. |
Looks good. Can you post a screenshot? I made something similar here.
|
1 Attachment(s)
>_<
if I see that one mines bad. :cry: |
Nice work, it looks great ^^
|
I like yours. Only thing is it might be a bit too large.
|
Well
I have to learn how to use scrolls, so I made it big eneugh for begin. |
Quote:
|
I think stefan stole your idea xD
|
I would suggest a GUI that can post the news to a file, and then load the text from that file in to the various tabbed panes.
I find that sticking to a single project and making it perfect is the best way to learn how to script. |
Quote:
temp.foo = temp.bar = 2;However, I do agree with you. |
Quote:
PHP Code:
|
Quote:
|
Quote:
I dont think so. I made a LOOOOONG text, and it just didnt show up anymore. how to say ... the text goes out of the news window and wont be showen. |
it'd be a good idea to name the GUI objects something useful rather than "ExampleWindow" and MyGUI_ScrollLine2 etc
|
Quote:
|
Quote:
Quote:
|
I don't think you guys are referring to the same thing.
(?)Angel_Light is referring to this as good practice: PHP Code:
PHP Code:
|
Quote:
|
Either way, I prefer doing it like this:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
okey, we get it, stop argue about it! x_x
|
With Scroll, FINALLY!
1 Attachment(s)
Now with scroll, smaller and also position = {}; extent = {}; stuff and better names(NewsTab etc.).
Also, if you want to use it(for those who didnt know) Save it for example under -System/News and after that, open the script for Control-NPC and add this PHP Code:
PHP Code:
|
Errors from this script:
PHP Code:
|
lawl, maybe I shouldnt "edit" the script and just post the one I use:
If this doesnt work, I should stop scripting PHP Code:
|
I'd suggest using
PHP Code:
It would look something like this: PHP Code:
I guess it's personal preference, though. It just might free up some space in that script. |
Or you can use
HTML Code:
text = "hi\n lol hi new line\n again"; |
Quote:
|
| All times are GMT +2. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.