![]() |
GUI Image Viewer
1 Attachment(s)
I've been scripting this on Delteria for the past 20 minutes, and I got to the end of scripting it and I wondered if the forums will benefit from this script. I don't know if it will be much use to anybody, but it came in handy to me! Please leave some feedback on the code so I can better it. Rip it apart if you like.
It's basically a GUI that lists all the image files in a folder and lets the user view them through the GUI. Nothing too amazing! http://pastebin.graalcenter.org/read...01056847901010 |
Why would anyone use this over, say I don't know, browsing the same images from their Graal folder?
|
Quote:
|
I also made a similar tool for Era and is also currently used on Delteria,
to get images from current level: PHP Code:
|
1 Attachment(s)
Updated. The image window now contains a scroll control that scales itself to the size of the image. You don't have to deal with only viewing the top left of the image if the image is bigger than the control. Viewing tilesets and larger images suits this.
I've also added a new text bar that allows viewing a specific file name instead of finding it through searching with the folder list option. http://pastebin.graalcenter.org/read...d=103360414039 |
Personally, I would suggest using a tree view instead of a list and sort the images names alphabetically. This would be more user friendly and good practice :)
|
1 Attachment(s)
Quote:
Update, I've added a file count and also added a sort() when adding the files to the text list. If anybody has any more suggestions, just post them here so I can add them. http://pastebin.graalcenter.org/read...=4762178107710 |
Fixed a stupid mistake where the script was triggering the client every time a new file was added to the list, which sometimes resulted in being disconnected from the server if there was 1000 odd files being added to the list!
Update. Bumped the size of the GUI up and moved some controls about. It's easier to read longer image names in the left hand text list now. http://pastebin.graalcenter.org/read...=6011061830108 |
It's way too small, write a hack that implements an image viewer into the Client-RC File Browser instead.
|
Quote:
|
Lol ^
|
Quote:
PHP Code:
everyone always make things far harder than they need to be please stop doing that |
well played
|
All times are GMT +2. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.