Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 51
  1. #31
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Again, as I said before, I would *NOT* count on making double click work on all devices. I think it makes more sense to distinguish between click and move in other ways.

    The easiest of all is to make it context sensitive: For example, have it mean move, say, only when the TAB for MOVE is being displayed. Otherwise it means click.

    Granted it's a bit more constrained, but I think it will work across a wider range of devices and it's really pretty intuitive. You *DO* have the "MOVE" icon (the crossed arrows) as one of your tab controls already, so why not use it? Only if that icon/tab is active will drag/move be activated.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  2. #32
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    This application I am building is part of a new upcoming help/reference/tutorial website I have been trying to set up for sometime now. The website it is being set up for is an on-line game. This part of the game is open during Halloween.

    Usually the user can only see a 6x11 Map at a singular time. I have gone through the entire Hallow Town and got the map so they can know where everything is, zoom out to view a larger map or see it at the normal view size.

    This version of Hallow town as been available for, I think either 3 or 4 years now. Each year there are more missions to complete. If they have set settings to show the mission points on the map shown, they'll be able to go through and see the missions and gain help and know where exactly they need to go on certain tiles and whatnot. There'll be a checklist whereas if they've done the mission, they check it and it turns green. If they click on a mission then chec one of the tasks inside the mission, then that one will show up as orange. All unstarted missions will show up as red.

    There are also hotspots for finding checks and being able to unlock them. These will be another feature they are able to disable, for those who do not want to see any spoilers so to speak.

    On the actually games Hallow Town, there is a chat as well, this is shown where I have the tabs content and the users are shown where my tab menu is, however this is unique per tile, of which I think is stupid and hope to either have a chat elsewhere on the page or one under a tab for anyone on the website to talk about the Halloween event.

    This will also be used as a template for the Christmas Town event they have as well.

  3. #33
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Old Pedant View Post
    Again, as I said before, I would *NOT* count on making double click work on all devices. I think it makes more sense to distinguish between click and move in other ways.

    The easiest of all is to make it context sensitive: For example, have it mean move, say, only when the TAB for MOVE is being displayed. Otherwise it means click.

    Granted it's a bit more constrained, but I think it will work across a wider range of devices and it's really pretty intuitive. You *DO* have the "MOVE" icon (the crossed arrows) as one of your tab controls already, so why not use it? Only if that icon/tab is active will drag/move be activated.
    I personally believe this seems awkward. Maybe if they had to click a button which changed to an active button to click and drag the map and unclick it for other reasons but I personally just don't like the idea.

    I'm not sure what Google Maps are programmed in, but they have a right click feature, can this be done in Javascript?

  4. #34
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    3,020
    Thanks
    56
    Thanked 566 Times in 563 Posts
    you hijack the click event

    https://developer.mozilla.org/en-US/....oncontextmenu

    then add you own functionality

  5. #35
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Sure, right click is easy. And Google maps are in JavaScript, what a huge surprise.

    But, just for example, I don't think there is any right click on an iPad or iPhone. And I know there isn't one on a Nook.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  6. #36
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Old Pedant View Post
    Sure, right click is easy. And Google maps are in JavaScript, what a huge surprise.

    But, just for example, I don't think there is any right click on an iPad or iPhone. And I know there isn't one on a Nook.
    You also cannot click and drag on these devices, therefore they can use the move tab. There'll also be a tab for setting markers and doing the same options, just more easier if your using a computer with a mouse...

  7. #37
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Ummm...I click and drag on the Nook all the time. And my grandson drags and click on his iPad all the time.

    Try playing Angry Birds without drag, for example. And a tap on the screen is interpreted as a mouse click.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  8. #38
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Oh I did not know. I cannot use technology such as touch screen mobiles and whatnot as I'm registered blind and need a magnification on my system of x500+ magnification enabled

    I know this does complicate things for the user, but I did find this for the iPad...
    If you purchase the ipad app VNC Viewer, by Real VNC, when you tap at the top of the screen, instead of choosing keyboard, choose mouse, then at the bottom right of the screen, you will have a left and right
    mouse button you can use. By the way, if you hold the left mouse button and move your other finger, you can use the "drag and drop" or resize windows if you want.
    How does Google Maps work on those devices with having a right-click feture?

  9. #39
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Are the forums broke? It says I was not the last to post on this thread, however I can only see my post as being the last one on the thread and when I went back to the board, my thread was still showing in bold...

    Edit: Adding this post looks like it resolved things...

  10. #40
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    When somebody SPAMs a thread, they will show as last post, even if their post is removed, until some scheduled refresh cleans up the list of last posts. In other words, the forum CACHES the "last post" information, probably in a separate DB table, and then has to go and clean up the table when posts are removed.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  11. #41
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Dunno how Google Maps works with right click on iPad, if at all. On the Nook, the only way to shrink or grow the map is to use +/- buttons, due to the lack of a mouse wheel. (Poor interface design...PINCH and UNPINCH work in other apps to change the magnification. I'm guessing that Google just doesn't see the Nook as a big enough market to build a version just for it.)
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  12. #42
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    I'm going to work on the tabs for now, how can I show this image;

    https://tornhq.com/images/Events/Hal...wobjective.png

    On certain tiles and hide it?

    Basically there'll be a check list and if it's checked it won't show, but if it's defaulted unchecked, it'll show...

    If you can just tell me once if it's simple enough, hopefully I can do it for the rest...

  13. #43
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    How will the code know *which* tiles to put that on?

    Will you have an array of coordinates where it goes?

    Example:
    Code:
        var showIconAt = [ "3:17","4:22","17:8" ];
    Or what?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  14. #44
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    To be honest, I don't have a clue. Is there a way to give certain tiles ID names or whatnot?

    I need to be able to mark these quest starter points and a here marker but I'm going to be working on the quests, sorting out the listing first and showing them on the map and making the settings tab to be able to disable them all trying to put a bit of Javascript practice to use...

  15. #45
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Well, you can't use IDs, because you are using those for coordinates.

    And in any case if you use that map generator based on the letters, as you are doing now, how would you piggyback an indicator on top of one of the letters?

    Honestly, likely the best way is exactly as I described in post #43. Put them in a separate array, like that, using their coordinates. Is that viable for you??
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


 
Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •