Difference between revisions of "Instrument upgrade 2 to 3"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=== Text === | === Text objects === | ||
The biggest difference between AM 2.1.3 and AM 3.0 is the way text is rendered. | The biggest difference between AM 2.1.3 and AM 3.0 is the way text is rendered. | ||
Line 12: | Line 12: | ||
In AM 2.1.3, a text object might be initialized using this code:<br/> | In AM 2.1.3, a text object might be initialized using this code:<br/> | ||
<b>mytext1 = txt_add("hello world", "-fx-font-size:11px; -fx-fill: black; -fx-font-weight:bold; -fx-text-alignment:right;", 0, 0, 800, 200)<b | <b>mytext1 = txt_add("hello world", "-fx-font-size:11px; -fx-fill: black; -fx-font-weight:bold; -fx-text-alignment:right;", 0, 0, 800, 200)</b> | ||
In AM 3.0 it would become:<br/> | In AM 3.0 it would become:<br/> | ||
<b/>mytext1 = txt_add("hello world", "size:11 ; color: black; halign:right;", 0, 0, 800, 200)<b | <b/>mytext1 = txt_add("hello world", "size:11 ; color: black; halign:right;", 0, 0, 800, 200)</b> |
Revision as of 09:22, 29 May 2017
General
This page explains things to note when you upgrade an existing instrument made in Air Manager 2.1.3 to Air Manager 3.0.
Text objects
The biggest difference between AM 2.1.3 and AM 3.0 is the way text is rendered. This means that you have to check all text objects you use in your instrument, and make sure that you reposition them correctly.
1. Style
In AM 2.1.3, a text object might be initialized using this code:
mytext1 = txt_add("hello world", "-fx-font-size:11px; -fx-fill: black; -fx-font-weight:bold; -fx-text-alignment:right;", 0, 0, 800, 200)
In AM 3.0 it would become:
mytext1 = txt_add("hello world", "size:11 ; color: black; halign:right;", 0, 0, 800, 200)