[PLUGIN] ComboBox & ListBox

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • vtrix

    It's still flickering in Chrome ??? It has to be fixed though !

    I checked with Safari but not with Chrome (the two browsers which encountered a bug).

    I'm gonna check this and get back to you.

    About your edit, what doesn't work ? Can you tell me more about your problem, may you provide me a capx too ?

    Thanks.

  • the flickering i tested in new file with you last update so i think the problem is still there,

    in my current project, its like the listbox is not there, cant select or click on the listbox, ill send you a capx

    edit:

    testcapx

    i cleaned everything out of my capx and problem is still there, no selection...

    i used another solution now instead of the listbox, but maybe good to find whats wrong

  • Very nice! Thank you.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • vtrix

    I haven't looked at your capx yet but I found what occured this bug.

    It's this famous conflict with the mouse object.

    I'm working on it but it seems to be odder than usually.

    The flickering bug is solved!

    The new version adds some 'focus' options but I won't release it before these bugs are solved.

    Let me know if you need the new version (be aware this'll be buggy).

  • I'm having this same problem. I add the combobox and when the layout starts, add values. But I can't Click the box, or select it or anything.

    ???

  • Great plugin by the way. <img src="smileys/smiley32.gif" border="0" align="middle" /> <img src="smileys/smiley32.gif" border="0" align="middle" />

    Only one problem and it's sort of a big one at least for me...

    If I add the mouse plugin to the project, the combo box stops responding to any sort of mouse activity.

    I looked through the forum and didn't see anyone else posting this, which is surprising to me. I would think many people would be running into this.

    Ok, I am using Chrome 20.0.1132.57 m, and Construct2 v95.

    I did tests stand alone and in my game. The results are the same if using the mouse plugin.

    I hope you are interested to fix this and I hope it can be fixed. One suggestion if C2 is stealing your mouse clicks is to add 2 actions: namely "openList" and "close List". That will help even if you can get your clicks because people may sometimes want to handle closing of the list themselves. As for selection, that is a more difficult task, unless C2 will also pass you the coordinates in a mouse condition / event.

    Let me know if I can help.

  • Hey, are you super busy with your game?

    I don't mean to be an arse but although your plugin concept is great it has a problem that it won't work with mouse plugins.

    Are you going to fix this? If not I figured out the problem a fix. If you not going to bother about it, I will have to create my own ComboBox, ListBox and TypeaheadBox plugin.

    Or I can just share my finding with you, which are... look at the textBox plugin, you will see they have comments and fixes for the mouse issue. You add those lines of code at the OnCreate method and your plugin is fixed. They are all JQuery event listener adds with comments saying they fix the mouse click stealing. I add them to your plugin and it worked.

    Then there is the cosmetic problem of flicker, which can be overcome with a nasty but effective buffering of the mouseover event mouse position. If the mouse is on the same element more then half of the last 10 calls, then accept it as the true mouse position, then hand set the highlighting using css and disable the highlight color.

    I haven't done the hightlight flicker issue yet, but I feel confident it will work. You want my help or you want me to take it over or you don't care?

    Btw, I really admire all your beautiful work and posting on here. A true solder of game development!

  • seac

    Sorry for the delay.

    I have no time to spend on construct 2 stuffs (in fact I have no time at all for anything) for the moment.

    I have to release new versions of my plugins which will probably fix that kind of problem though.

  • Great plugin! Very useful for tools. Unfortunately the bug Seac mentioned is preventing me from actually using it. Any chance you have the time to fix that now?

  • I've been reading through the forum, and you've done a lot of work. I was just wondering if you had anyone that has had a problem with Chrome 22. It works great with Firefox, so I'm not sure what the problem is. It loads the first item, and shows it in the box, but clicking the down button is ignored, and I can only select the first item. I'll try to post a capx in a bit.

  • I believe this is the same issue I had with the Keycode plugin, where the native Keyboard plugin would over ride the Keycode jQuery calls.

    From what I can tell, the info.preventDefault() calls in the native Mouse and Keyboard plugins suppress all other jQuery calls that come after. The calls can be found in the Mouse plugin on lines 127, 149, 165, and 187.

    Other than writing your own Mouse plugin (or modifying the native Mouse plugin, for personal use only, of course), I haven't been able to figure out a workaround.

    I hope someone can tell me I'm wrong, or provide a workaround for the preventdefault calls.

  • I figured out that I have the same problem with the mouse plugin. Thanks for all the work.

  • seac Tokinsom tnewhook Wastrel

    Sorry for the delay, this update was ready for a long time but I didn't take the time to release it. I didn't get the time to correctly test it as well, but the old bugs seem fixed in this version.

    Let me know if there's something wrong.

    Download new update

    Changelog - version 2.4

    -Add Truncate property

    -Add condition 'Has focus'

    -Add condition 'Lost focus'

    -Add action 'Get focus'

    -Add action 'Loose focus'

    -Fix bug with touch / oncrop

    -Fix a flickering bug with Chrome when the dropdownlist was opened.

  • WOW...you did it! Great job! Thanks so much

  • tnewhook

    Nice ;)

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)