Rg_Pictures.js

● ARCHIVED · READ-ONLY
Started by dopan 2 posts View original ↗
  1. This Plugin allows to display Pictures fixed on Region Tiles based on region Id,
    It offers script to manipulate events based on their regionId xy location

    It gives some extra data to the pictures,
    Picture extra data
    Screenshot_3.png

    & it gives 2 different Z anchor options ..
    => both anchor layer can be changed via param & scriptcalls
    (default "regionPic anchor" is 'normal' on tile, and 'top' is the same anchor as normal pictures => above everything else)

    This plugins adds the new class "Map_Region" which stores every region_tile on map, and it stores data about its Picture's pictureId, its map_xy and its screen_xy position, its number in the regionList & its region_Id..
    Map_Region
    Screenshot_2.png
    .. And the Plugin offers a few more other region picture related scripts..

    screenshots:
    Spoiler
    Screenshot_1.png
    ------------
    Screenshot_9.png
    ------------
    Screenshot_2.png
    ------------
    Screenshot_8.png
    ------------


    GitHub link
    Terms: MIT LICENSE

    free to use in any project
    (edits are allowed aswell)


    if anybody finds a bug pls let me know!
  2. I updated this Version to 1.1

    that was required out of 2 reasons:

    - added usefull data to events
    (event._regionId & event._mapRegion)
    - the 2nd reason was the same like this: #2
    ( = me beeing a noob in building global objects, with the correct function chains )
    If you already used the previous version , pls update/replace it. thx!