Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Slider?  (Read 7565 times)

0 Members and 1 Guest are viewing this topic.

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Slider?
« on: January 18, 2004, 06:44:05 PM »

I'm trying to create slider for controlling music volume. I have created an entity container, but I'm unable to change the position of the slider object in the window. The script of the slider-entity, slider.script, looks like this:

Code: [Select]
#include "scripts\base.inc"

//var scrollbutton=Game.LoadEntity("\slider\slider.entity");
//scrollbutton.Visible=true;

var scrollBtn=Window.GetEntity();


on "LeftClick"
{
scrollBtn.X=200;


Game.Msg("left_CLICK");
}

on "LeftRelease"
{


Game.Msg("left_release");


}



It says it doesn't recognize GetEntity().

The x=200 is just for testing purposes :D btw
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re:Slider?
« Reply #1 on: January 18, 2004, 08:05:57 PM »

I think McCoy used one for his game "FRED".

You can download the source code here: http://adan.iefactory.com/wintermute/FredSources.exe
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Slider?
« Reply #2 on: January 18, 2004, 08:39:12 PM »

You should use GetControl() to get window's controls.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:Slider?
« Reply #3 on: January 18, 2004, 08:39:12 PM »

Sorry but the comments are in spanish... If you really need them, I can translate the comments of the slider for you. I'm planning to translate all the comments to english... someday...  :-\
Logged

Click here to sign my sig!

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:Slider?
« Reply #4 on: January 19, 2004, 07:47:44 PM »

Wow, I didn't remember it, but I translated the code for a little (and VERY stupid) doubt I had with some problem with the code.

You can check the post with the code here:

http://www.dead-code.org/forum/index.php?board=3;action=display;threadid=215

It works OK for me, but it's not perfect, don't expect it to work like windows scrollbars, and it's specifically designed for a 100px vertical bar... Not very flexible, but maybe you can modify it to fit your needs.
Logged

Click here to sign my sig!

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re:Slider?
« Reply #5 on: January 20, 2004, 03:42:19 PM »

Thanks for the help, I tried search but keyword "slider" didn't come up with anything.
Logged

fsk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • View Profile
    • My blog
Re: Slider?
« Reply #6 on: June 21, 2011, 04:04:36 PM »

Hi! Anyone to upload the FredSources because the link is down..
Thanks! :)
Logged

fsk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • View Profile
    • My blog
Re: Slider?
« Reply #7 on: June 26, 2011, 05:32:18 PM »

anyone to upload?
thanks! :)
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Slider?
« Reply #8 on: June 26, 2011, 05:53:48 PM »

Hey there!

If you have to dig out 7 Year old threads, one post is enough I think ;) Did you simply try to write a PM to the guy who sent the link?

Cheers.
Logged

fsk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • View Profile
    • My blog
Re: Slider?
« Reply #9 on: June 26, 2011, 06:06:01 PM »

Yes is send pm.. but i hope some of wme guys to have this source!!!  O0
Logged

HelLRaiseR

  • I don't want to make a Monkey Island clone :(
  • Wiki editor
  • Frequent poster
  • ****
  • Karma: 4
  • Offline Offline
  • Posts: 270
    • View Profile
    • Adventure Box Studios
Re: Slider?
« Reply #10 on: June 26, 2011, 06:36:55 PM »

I have a option screen based in Fred sources, the functionality is the same, but in my window there are a few additional checkboxes.

You can download the window and the scripts here: http://www.adventureboxstudios.com/option_screen.zip

The code that is interesting for you is in the optScr folder, in this folder there are five scripts, each script manages one slide bar.

I'm sorry, the comments are in spanish. If you has any problem or question you can ask me.

Logged
Regards,

    Fernando

fsk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • View Profile
    • My blog
Re: Slider?
« Reply #11 on: June 26, 2011, 06:55:12 PM »

Thanks for your help! :)

* Missing some files from interface (fonts, images)..
« Last Edit: June 26, 2011, 07:00:37 PM by fsk »
Logged
 

Page created in 0.431 seconds with 23 queries.