Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.
Trekbuddy is on Github now

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Sliding variable in CMS (BUG ?)

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes
View previous topic :: View next topic  
Author Message
boowoo



Joined: 12 Jun 2013
Posts: 556
Location: France

PostPosted: Sun Mar 20, 2016 11:01 pm    Post subject: Sliding variable in CMS (BUG ?) Reply with quote

Hello,

Please,
are the variable "wpt-azi.g-sliding" and "course.g-sliding" always usable for CMS ?
I've tryed different CMS available (CMS galery) on my android phone and all is working fine exept these two functions ? I miss something ?

Edit :
i attach a CMS 480X800 (customized by me) with "wpt-azi.g-sliding" and "course.g-sliding" which are not working (not visible on CMS navigation screen)
I dont understand what happen ...
If an expert can have a look to point what is wrong? it should be great ! Smile
Thanks



Gris-Big-Rotate-2P.zip
 Description:

Download
 Filename:  Gris-Big-Rotate-2P.zip
 Filesize:  429.94 KB
 Downloaded:  6 Time(s)



Last edited by boowoo on Wed Mar 23, 2016 11:16 am; edited 1 time in total
Back to top
View user's profile Send private message
boowoo



Joined: 12 Jun 2013
Posts: 556
Location: France

PostPosted: Wed Mar 23, 2016 11:11 am    Post subject: Reply with quote

Idea I've made a test with an old version : TB 1.1.4 and ... it's working !
So, i think maybe it could be a bug in recent versions ..?

Could you fix it if it's possible ? Thanks
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5673

PostPosted: Wed Mar 23, 2016 8:01 pm    Post subject: Reply with quote

Strange content in cms.2navigation.xml:

Code:
    <area x="88" y="430" w="306" h="32" image="smurf_azi-compass.png" align="left">
      <value>{wpt-azi.g-sliding}</value>
    </area>
    <area x="88" y="381" w="306" h="32" image="smurf_crs-compass.png" align="left">
      <value>{course.g-sliding}</value>
    </area>


image attribute should be name of image declared in <images> section. And the image should be square, otherwise result will be.. don't know.
1) there are no <images> 2) smurf_crs-compass.png is not square.

Simple example:

Code:
<cms version="1.0">
    <images>
        <image name="arrow" file="arrow.png"/>
    </images>
    <screen mode="full" w="320" h="455">
        <area x="0" y="60" w="32" h="32" image="arrow">
            <value>45</value>
        </area>
        <area x="32" y="120" w="32" h="32" image="arrow">
            <value>{wpt-azi.g-sliding}</value>
        </area>
   </screen>
</cms>



arrow.png
 Description:
square icon for CMS example
 Filesize:  658 Bytes
 Viewed:  5500 Time(s)

arrow.png


Back to top
View user's profile Send private message
boowoo



Joined: 12 Jun 2013
Posts: 556
Location: France

PostPosted: Wed Mar 23, 2016 8:43 pm    Post subject: Reply with quote

Thanks for answer Kruch,
It's the beginning of my work, so it's not perfect with, maybe some errors ...

"smurf_crs-compass.png" has never been square image in other old CMS (galery), but it was rectangle image for working nice with variable {course.g-sliding} in TB old versions ...
idem for "smurf_azi-compass" with variable {wpt-azi.g-sliding}

Why these sliding variables seems working good with TB 1.1.4 and not working with TB 1.31 ? -> look screenshots



SC with TB 1.1.4.png
 Description:
 Filesize:  55.94 KB
 Viewed:  5493 Time(s)

SC with TB 1.1.4.png



SC with TB 1.31.png
 Description:
 Filesize:  59.12 KB
 Viewed:  5493 Time(s)

SC with TB 1.31.png


Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5673

PostPosted: Wed Mar 23, 2016 11:17 pm    Post subject: Reply with quote

It works (should work) the same way as before, without modification. Attribute image is new for square images, area value specifies rotation angle then.
I know it ugly to use font for sliders, but that did not change in 1.31. (perhaps it should have!! while keeping backward compatiblity, for sure).

If you have CMS that work in old version but does not work as-is in 1.31, send it to me please.
Back to top
View user's profile Send private message
boowoo



Joined: 12 Jun 2013
Posts: 556
Location: France

PostPosted: Thu Mar 24, 2016 5:35 am    Post subject: Reply with quote

Hi,

http://www.trekbuddy.net/forum/viewtopic.php?p=44267#44267

This one work with TB 1.1.4 and dont work with TB 1.31 ... (exactly same problem that i have with my CMS mod !)

There is no problem with sqare image (font.dir), ...problem is only when using rectangle image (compass..png) for this CMS (Colors CMS) -> slide compass are not shown !
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5673

PostPosted: Thu Mar 24, 2016 6:33 am    Post subject: Reply with quote

OMG, I see it now. I broke compatibility of image attribute in 1.31. Embarassed

Follow up in http://www.trekbuddy.net/forum/viewtopic.php?p=58116#58116

1.32 with the fix coming tonight.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group