Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - 2.0

Pages: [1] 2 3 ... 15
1
Technical forum / Re: Layer opacity?
« on: February 08, 2014, 01:45:34 PM »
Layer has no AlphaColor property as well as has no FadeIn() method.
Try to use such code:

Code: WME Script
  1. function SetAlpha(_object, _alpha)
  2. {
  3.   _object.AlphaColor = MakeRGBA(255, 255, 255, _alpha);
  4. }
  5.  
  6. on "LeftClick"
  7. {
  8.   var layer = Scene.GetLayer("closeup_winch");
  9.   var i;
  10.  
  11.   for (i=0; i<layer.NumNodes; i=i+1)
  12.     SetAlpha(layer.GetNode(i), 0);
  13.  
  14.   layer.Active = true;
  15.  
  16.   for (var a=5; a<=255; a=a+50)
  17.   {
  18.     for (i=0; i<layer.NumNodes; i=i+1)
  19.       SetAlpha(layer.GetNode(i), a);
  20.     Sleep(30);
  21.   }
  22. }

2
Technical forum / Re: optional parameters in a custom method
« on: January 25, 2014, 12:09:05 PM »
What about following solution?

Code: WME Script
  1. method TestMethod(param1, param2 = null)
  2. {
  3.   if (param2 == null)
  4.     Game.Msg("You called TestMethod with 1 parameter: "+param1);
  5.   else
  6.     Game.Msg("You called TestMethod with 2 parameters: "+param1+","+param2);
  7. }

3
It seems that the answer is - no. But the way you described is quite good, considering the fact that it takes (in theory) are just a few lines of code:

[code=script]method DisableControls()
{
  for (var i=0; i<this.NumControls; i=i+1)
  {
    var

4
Technical forum / Re: Scale 2D characters
« on: January 22, 2014, 11:53:03 PM »
See pm. And the new character looks more pleasant and less brutal than previous :)

5
Technical forum / Re: Scale 2D characters
« on: January 22, 2014, 08:39:24 AM »
Дело в том, что ва

6
Technical forum / Re: ParentNotify not working for sub-window
« on: January 14, 2014, 03:13:06 AM »
It works for buttons within the window at least. As about windows - well, every day is not Sunday :)

7
Technical forum / Re: ParentNotify not working for sub-window
« on: January 13, 2014, 12:01:15 PM »
Yes, in the main window script you need to define some method, for example:
   
Code: WME Script
  1.     on "NestedButton"
  2.     {
  3.             //do something
  4.     }
     
And in the nested window script:

Code: WME Script
  1.     on "btnOption1"
  2.     {
  3.             var Window = this.Parent;
  4.             Window.ApplyEvent("NestedButton");
  5.     }
     

8
Help wanted and offered / Re: Programming
« on: January 10, 2014, 02:23:25 AM »
Hi,
Can you give us some more detailed info about you and your games?

9
General Discussion / Re: Merry Christmas and a Happy New Year
« on: December 29, 2013, 12:23:02 AM »
Merry Christmas and a Happy New Year, and the year that is to come, it's better that we leave behind.
 ::wave :)

The same to you!
Merry Christmas! :)

10
Game announcements / Re: SecuraNote app
« on: December 17, 2013, 10:19:25 PM »
Hi!
Nice idea, but I can't install this app on my iPad 1 because of iOS version is 5.1 maximun but the app requires of 6.1. My iPod is also 5.1 because of jailbreak :)
So why did you decided to compile app exactly for this iOS version?

My new app I made with the Wintermute engine. It's for iPhone/iPad and it's free !

Check it out here: https://itunes.apple.com/us/app/securanote/id738335030?ls=1&mt=8

11
Technical forum / Re: New line in editor. Possible?
« on: November 03, 2013, 11:31:49 AM »
Simple. Just add mutiple editors, one underneath the other. When Enter is hit, or the Line.SelEnd is a certain number, it drops down to the next box. I have the graphics in place so it looks like one big box. Let me know if that helps.

Really very elegant and simple solution :)

12
Technical forum / Multitouch in WME/WME Lite - is it possible?
« on: November 01, 2013, 05:09:27 PM »
Hi!

Interests in possibility of the multi-touch (at least for two fingers) in the WME. If it is possible - where exactly in sources it is necessary to do additional implementation?

13
Technical forum / Re: New line in editor. Possible?
« on: November 01, 2013, 05:05:32 PM »
It is cool! And what the method consists of, if not a secret?

14
Technical forum / Re: New line in editor. Possible?
« on: October 31, 2013, 04:01:12 PM »
Hi. While I have no specific ideas on how to work around this limitation without changing the source code, except the sketch of the idea :)
Static control have a line feed. And if a duplicate row from the editor control to the static - output similar to the correct one.

Code: WME Script
  1. on "editor"
  2. {
  3.         var edit = this.GetControl("editor");
  4.         var text = this.GetControl("text"); // Static control
  5.         text.Text = edit.Text
  6. }

But if you get rid of the editor control, it ceases to receive and send events. Perhaps the keyboard events should be handled directly in the window script and letter by letter added a in a text string of the static control. And also to manually draw the cursor over it. Other ideas while aren't present.

15
Technical forum / Re: New line in editor. Possible?
« on: October 29, 2013, 11:22:44 AM »
As far as I can see, there is no support of formatting indetifiers in Editor field. So it's possible to try to get around the restriction by inserting spaces at the string's break, or try to find other method. For the detection of the breaking you can try the following code inside the window script.

Code: WME Script
  1. on "Keypress"
  2. {
  3.   if(Keyboard.KeyCode==VK_RETURN)
  4.   {
  5.         var edit = this.GetControl("editor");
  6.         var txt = new String(edit.Text);
  7.         var txt1 = txt.Substring(0,edit.SelEnd-1);
  8.         var txt2 = txt.Substring(edit.SelEnd, txt.Length-1);
  9.         edit.Text = txt1 + " " + txt2;
  10.   }
  11. }

Pages: [1] 2 3 ... 15

Page created in 0.07 seconds with 20 queries.