From 5aa2b469899b2867c0f9cd8ed7ed6b641d3d8d65 Mon Sep 17 00:00:00 2001 From: Hanusiak Piotr Date: Thu, 16 Dec 2021 09:51:30 +0100 Subject: [PATCH] camera docs update --- docs/maps/camera.md | 24 +++++++++++------- docs/maps/images/camera/4_add_zone_type.png | Bin 0 -> 5253 bytes ..._property.png => 5_click_add_property.png} | Bin ...able_prop.png => 6_add_focusable_prop.png} | Bin ...re_checked.png => 7_make_sure_checked.png} | Bin ..._zoom_margin.png => 8_add_zoom_margin.png} | Bin ...png => 9_optional_zoom_margin_defined.png} | Bin 7 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 docs/maps/images/camera/4_add_zone_type.png rename docs/maps/images/camera/{4_click_add_property.png => 5_click_add_property.png} (100%) rename docs/maps/images/camera/{5_add_focusable_prop.png => 6_add_focusable_prop.png} (100%) rename docs/maps/images/camera/{6_make_sure_checked.png => 7_make_sure_checked.png} (100%) rename docs/maps/images/camera/{7_add_zoom_margin.png => 8_add_zoom_margin.png} (100%) rename docs/maps/images/camera/{8_optional_zoom_margin_defined.png => 9_optional_zoom_margin_defined.png} (100%) diff --git a/docs/maps/camera.md b/docs/maps/camera.md index ac25c843..9e58fcad 100644 --- a/docs/maps/camera.md +++ b/docs/maps/camera.md @@ -29,22 +29,28 @@ It is possible to define special regions on the map that can make the camera zoo -4. Edit this new object and click on **Add Property**, like this: +4. Make sure your object is of type "zone"!
- +
-5. Add a **bool** property of name *focusable*: +5. Edit this new object and click on **Add Property**, like this:
- +
-6. Make sure it's checked! :) +6. Add a **bool** property of name *focusable*:
- + +
+ +7. Make sure it's checked! :) + +
+
All should be set up now and your new **Focusable Zone** should be working fine! @@ -56,19 +62,19 @@ If you want, you can add an additional property to control how much should the c 1. Like before, click on **Add Property**
- +
2. Add a **float** property of name *zoom_margin*:
- +
2. Define how much (in percentage value) should the zoom be decreased:
- +
For example, if you define your zone as a 300x200 rectangle, setting this property to 0.5 *(50%)* means the camera will try to fit within the viewport the entire zone + margin of 50% of its dimensions, so 450x300. diff --git a/docs/maps/images/camera/4_add_zone_type.png b/docs/maps/images/camera/4_add_zone_type.png new file mode 100644 index 0000000000000000000000000000000000000000..0416d1e475165e0eee273b036888825fe8bf33d7 GIT binary patch literal 5253 zcmb7Ic|26@+aHFp4Js95uY~LkvX+@B%Fb9)V|mPEizG{SV;HhCcFD+2mP(N|6vJ2s zA^Xl)lC2&~@t&vWec#XX{+_?yKh8P#Irnv6=Um_Gdw;L{K2MDdwAopCSwSEW`z;+U z6A*}w0cg)N(*x)Ad%p&O3*BQA?dzb5Uj7x}hQR@;j|72U#k2jiV+8J5+;#3e27x%* z{yOM79u{Ljpwqm!w2-JL)?c%G;>~ZIjaWXG6BXdz(3_~QLbK1x%F*33^lLF-5zR~= z?apVXp1dLvdfw)0EW-eAEQc^G>&p31)-lpNliaBy&3iqmDrR1#tEi#CX}7wysT#M* zX`-6@MoC>weQEDwjqc5+;IZc5V+&iZd(A<=c2@=)z$GHew9eUrg(W7g`oT|KjiPk1HkEuwTGB`nHso z5)crtGmpM&v@(*7M5Njrx?R)?pN}@4_$2Y=)qF-ti9lulRI6JQ)GtSEJt%f(<4OOZ zr|0r$UCPeqZC0<>%Phe`!Lmdo=_aL^MU*_TUlug;b5|y>R_n9`x|za!&BkM*X+#xaVLc###4? z;z3)jq#_PaI?CpyH-;&SZvt}+4Zf+Cv=LEjGL^i$akQDF(jr6wrbhhA@`SeJL&HI_ z)U>pCew9`=hFCOv*s%%q1dRBo?O`U7Py$9Lbj=L6pG$I~*!qWEReXJS6R$UvuAwp{ z`3I~!q%|YxL4=7lI=4!D-fFrQ3_BpPf;{ZnA_jwTDm~J$SH|OJAA6vFXcc{ zL@Bzud(TDro@q-fFMqAjcD!756&`d{|%XP^Q9kdS$+rM^9^q< z(@u~7@R(53A=FFG`fT zFsG)batK}PRwLC^L4|Pon=3^*P5Vn(f02!{=>vjrVn87{C`c}W4g`UNJ|G~V^s^Y{ z`t1*|>vqqInVGM{rmU>=i6Fhm`!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FJvZUbcp4XmRhi%NZ==Gqohv**pdc zp#A5g3T?M~;?<UrV)jA&|`Mt%{l6DoTHhbnD{*Y+2X^25;>-P#zQ8fN5uRU%F@+t@{*qDnLfw`97Xt|qE@<&mH@WVV=PIFD?KY?VZxW#-hvbX+I^jAthe{wDMxoHH9aAA3&>GIpZ3ecR z|DX8>(E6H-RpRo_i#*QnGAWi2H7@pMzcGbEd0N6coXlw^l!vE{e%Kp6#eyYGPsdyp z(D~h&JdCllcTyU(I*)_yu8psOCclIx=Ih(5;@zBfdS}j>2gpZQ`#8VRI&@ZYJ|h;@ zr%4-r->Gq52Ns%HXhS`!(E9BreI0K3^F^u1w-VLu)ub9jF4#<5_8pMdTywR}6Pq=@|>LY8cEe~JZNW%##<9sc?4Si{xX>M3*U T%njhzA?Vf(1FeedwxRz8puncz literal 0 HcmV?d00001 diff --git a/docs/maps/images/camera/4_click_add_property.png b/docs/maps/images/camera/5_click_add_property.png similarity index 100% rename from docs/maps/images/camera/4_click_add_property.png rename to docs/maps/images/camera/5_click_add_property.png diff --git a/docs/maps/images/camera/5_add_focusable_prop.png b/docs/maps/images/camera/6_add_focusable_prop.png similarity index 100% rename from docs/maps/images/camera/5_add_focusable_prop.png rename to docs/maps/images/camera/6_add_focusable_prop.png diff --git a/docs/maps/images/camera/6_make_sure_checked.png b/docs/maps/images/camera/7_make_sure_checked.png similarity index 100% rename from docs/maps/images/camera/6_make_sure_checked.png rename to docs/maps/images/camera/7_make_sure_checked.png diff --git a/docs/maps/images/camera/7_add_zoom_margin.png b/docs/maps/images/camera/8_add_zoom_margin.png similarity index 100% rename from docs/maps/images/camera/7_add_zoom_margin.png rename to docs/maps/images/camera/8_add_zoom_margin.png diff --git a/docs/maps/images/camera/8_optional_zoom_margin_defined.png b/docs/maps/images/camera/9_optional_zoom_margin_defined.png similarity index 100% rename from docs/maps/images/camera/8_optional_zoom_margin_defined.png rename to docs/maps/images/camera/9_optional_zoom_margin_defined.png