| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2018-2022 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
Instead |
| 21 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 22 |
- and run generate-persistent-vectors in that directory. |
| 23 |
} |
| 24 |
|
| 25 |
{$ifdef read_interface_class} |
| 26 |
strict private |
| 27 |
FCurrentItemBorderColor1Persistent: TCastleColorPersistent; |
| 28 |
function GetCurrentItemBorderColor1ForPersistent: TCastleColor; |
| 29 |
procedure SetCurrentItemBorderColor1ForPersistent(const AValue: TCastleColor); |
| 30 |
published |
| 31 |
{ @link(CurrentItemBorderColor1) that can be visually edited in |
| 32 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 33 |
Normal user code does not need to deal with this, |
| 34 |
instead read or write @link(CurrentItemBorderColor1) directly. |
| 35 |
|
| 36 |
@seealso CurrentItemBorderColor1 } |
| 37 |
property CurrentItemBorderColor1Persistent: TCastleColorPersistent read FCurrentItemBorderColor1Persistent ; |
| 38 |
{$endif read_interface_class} |
| 39 |
|
| 40 |
{$ifdef read_implementation_methods} |
| 41 |
function TCastleOnScreenMenu.GetCurrentItemBorderColor1ForPersistent: TCastleColor; |
| 42 |
begin |
| 43 |
Result := CurrentItemBorderColor1; |
| 44 |
end; |
| 45 |
|
| 46 |
procedure TCastleOnScreenMenu.SetCurrentItemBorderColor1ForPersistent(const AValue: TCastleColor); |
| 47 |
begin |
| 48 |
CurrentItemBorderColor1 := AValue; |
| 49 |
end; |
| 50 |
{$endif read_implementation_methods} |
| 51 |
|
| 52 |
{$ifdef read_implementation_constructor} |
| 53 |
FCurrentItemBorderColor1Persistent := TCastleColorPersistent.Create(nil); |
| 54 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 55 |
on themselves, for backward compatibility. But we should not depend on it, |
| 56 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 57 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 58 |
in general (this is more functional, and more standard too). } |
| 59 |
FCurrentItemBorderColor1Persistent.SetSubComponent(true); |
| 60 |
FCurrentItemBorderColor1Persistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCurrentItemBorderColor1ForPersistent; |
| 61 |
FCurrentItemBorderColor1Persistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCurrentItemBorderColor1ForPersistent; |
| 62 |
FCurrentItemBorderColor1Persistent.InternalDefaultValue := CurrentItemBorderColor1; // current value is default |
| 63 |
{$endif read_implementation_constructor} |
| 64 |
|
| 65 |
{$ifdef read_implementation_destructor} |
| 66 |
FreeAndNil(FCurrentItemBorderColor1Persistent); |
| 67 |
{$endif read_implementation_destructor} |
| 68 |
|
| 69 |
{ -*- buffer-read-only: t -*- |
| 70 |
|
| 71 |
Copyright 2018-2022 Michalis Kamburelis. |
| 72 |
|
| 73 |
This file is part of "Castle Game Engine". |
| 74 |
|
| 75 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 76 |
included in this distribution, for details about the copyright. |
| 77 |
|
| 78 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 79 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 80 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 81 |
|
| 82 |
---------------------------------------------------------------------------- |
| 83 |
} |
| 84 |
|
| 85 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 86 |
|
| 87 |
Do not edit this file manually! |
| 88 |
Instead |
| 89 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 90 |
- and run generate-persistent-vectors in that directory. |
| 91 |
} |
| 92 |
|
| 93 |
{$ifdef read_interface_class} |
| 94 |
strict private |
| 95 |
FCurrentItemBorderColor2Persistent: TCastleColorPersistent; |
| 96 |
function GetCurrentItemBorderColor2ForPersistent: TCastleColor; |
| 97 |
procedure SetCurrentItemBorderColor2ForPersistent(const AValue: TCastleColor); |
| 98 |
published |
| 99 |
{ @link(CurrentItemBorderColor2) that can be visually edited in |
| 100 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 101 |
Normal user code does not need to deal with this, |
| 102 |
instead read or write @link(CurrentItemBorderColor2) directly. |
| 103 |
|
| 104 |
@seealso CurrentItemBorderColor2 } |
| 105 |
property CurrentItemBorderColor2Persistent: TCastleColorPersistent read FCurrentItemBorderColor2Persistent ; |
| 106 |
{$endif read_interface_class} |
| 107 |
|
| 108 |
{$ifdef read_implementation_methods} |
| 109 |
function TCastleOnScreenMenu.GetCurrentItemBorderColor2ForPersistent: TCastleColor; |
| 110 |
begin |
| 111 |
Result := CurrentItemBorderColor2; |
| 112 |
end; |
| 113 |
|
| 114 |
procedure TCastleOnScreenMenu.SetCurrentItemBorderColor2ForPersistent(const AValue: TCastleColor); |
| 115 |
begin |
| 116 |
CurrentItemBorderColor2 := AValue; |
| 117 |
end; |
| 118 |
{$endif read_implementation_methods} |
| 119 |
|
| 120 |
{$ifdef read_implementation_constructor} |
| 121 |
FCurrentItemBorderColor2Persistent := TCastleColorPersistent.Create(nil); |
| 122 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 123 |
on themselves, for backward compatibility. But we should not depend on it, |
| 124 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 125 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 126 |
in general (this is more functional, and more standard too). } |
| 127 |
FCurrentItemBorderColor2Persistent.SetSubComponent(true); |
| 128 |
FCurrentItemBorderColor2Persistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCurrentItemBorderColor2ForPersistent; |
| 129 |
FCurrentItemBorderColor2Persistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCurrentItemBorderColor2ForPersistent; |
| 130 |
FCurrentItemBorderColor2Persistent.InternalDefaultValue := CurrentItemBorderColor2; // current value is default |
| 131 |
{$endif read_implementation_constructor} |
| 132 |
|
| 133 |
{$ifdef read_implementation_destructor} |
| 134 |
FreeAndNil(FCurrentItemBorderColor2Persistent); |
| 135 |
{$endif read_implementation_destructor} |
| 136 |
|
| 137 |
{ -*- buffer-read-only: t -*- |
| 138 |
|
| 139 |
Copyright 2018-2022 Michalis Kamburelis. |
| 140 |
|
| 141 |
This file is part of "Castle Game Engine". |
| 142 |
|
| 143 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 144 |
included in this distribution, for details about the copyright. |
| 145 |
|
| 146 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 147 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 148 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 149 |
|
| 150 |
---------------------------------------------------------------------------- |
| 151 |
} |
| 152 |
|
| 153 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 154 |
|
| 155 |
Do not edit this file manually! |
| 156 |
Instead |
| 157 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 158 |
- and run generate-persistent-vectors in that directory. |
| 159 |
} |
| 160 |
|
| 161 |
{$ifdef read_interface_class} |
| 162 |
strict private |
| 163 |
FCurrentItemColorPersistent: TCastleColorPersistent; |
| 164 |
function GetCurrentItemColorForPersistent: TCastleColor; |
| 165 |
procedure SetCurrentItemColorForPersistent(const AValue: TCastleColor); |
| 166 |
published |
| 167 |
{ @link(CurrentItemColor) that can be visually edited in |
| 168 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 169 |
Normal user code does not need to deal with this, |
| 170 |
instead read or write @link(CurrentItemColor) directly. |
| 171 |
|
| 172 |
@seealso CurrentItemColor } |
| 173 |
property CurrentItemColorPersistent: TCastleColorPersistent read FCurrentItemColorPersistent ; |
| 174 |
{$endif read_interface_class} |
| 175 |
|
| 176 |
{$ifdef read_implementation_methods} |
| 177 |
function TCastleOnScreenMenu.GetCurrentItemColorForPersistent: TCastleColor; |
| 178 |
begin |
| 179 |
Result := CurrentItemColor; |
| 180 |
end; |
| 181 |
|
| 182 |
procedure TCastleOnScreenMenu.SetCurrentItemColorForPersistent(const AValue: TCastleColor); |
| 183 |
begin |
| 184 |
CurrentItemColor := AValue; |
| 185 |
end; |
| 186 |
{$endif read_implementation_methods} |
| 187 |
|
| 188 |
{$ifdef read_implementation_constructor} |
| 189 |
FCurrentItemColorPersistent := TCastleColorPersistent.Create(nil); |
| 190 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 191 |
on themselves, for backward compatibility. But we should not depend on it, |
| 192 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 193 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 194 |
in general (this is more functional, and more standard too). } |
| 195 |
FCurrentItemColorPersistent.SetSubComponent(true); |
| 196 |
FCurrentItemColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCurrentItemColorForPersistent; |
| 197 |
FCurrentItemColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCurrentItemColorForPersistent; |
| 198 |
FCurrentItemColorPersistent.InternalDefaultValue := CurrentItemColor; // current value is default |
| 199 |
{$endif read_implementation_constructor} |
| 200 |
|
| 201 |
{$ifdef read_implementation_destructor} |
| 202 |
FreeAndNil(FCurrentItemColorPersistent); |
| 203 |
{$endif read_implementation_destructor} |
| 204 |
|
| 205 |
{ -*- buffer-read-only: t -*- |
| 206 |
|
| 207 |
Copyright 2018-2022 Michalis Kamburelis. |
| 208 |
|
| 209 |
This file is part of "Castle Game Engine". |
| 210 |
|
| 211 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 212 |
included in this distribution, for details about the copyright. |
| 213 |
|
| 214 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 215 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 216 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 217 |
|
| 218 |
---------------------------------------------------------------------------- |
| 219 |
} |
| 220 |
|
| 221 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 222 |
|
| 223 |
Do not edit this file manually! |
| 224 |
Instead |
| 225 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 226 |
- and run generate-persistent-vectors in that directory. |
| 227 |
} |
| 228 |
|
| 229 |
{$ifdef read_interface_class} |
| 230 |
strict private |
| 231 |
FNonCurrentItemColorPersistent: TCastleColorPersistent; |
| 232 |
function GetNonCurrentItemColorForPersistent: TCastleColor; |
| 233 |
procedure SetNonCurrentItemColorForPersistent(const AValue: TCastleColor); |
| 234 |
published |
| 235 |
{ @link(NonCurrentItemColor) that can be visually edited in |
| 236 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 237 |
Normal user code does not need to deal with this, |
| 238 |
instead read or write @link(NonCurrentItemColor) directly. |
| 239 |
|
| 240 |
@seealso NonCurrentItemColor } |
| 241 |
property NonCurrentItemColorPersistent: TCastleColorPersistent read FNonCurrentItemColorPersistent ; |
| 242 |
{$endif read_interface_class} |
| 243 |
|
| 244 |
{$ifdef read_implementation_methods} |
| 245 |
function TCastleOnScreenMenu.GetNonCurrentItemColorForPersistent: TCastleColor; |
| 246 |
begin |
| 247 |
Result := NonCurrentItemColor; |
| 248 |
end; |
| 249 |
|
| 250 |
procedure TCastleOnScreenMenu.SetNonCurrentItemColorForPersistent(const AValue: TCastleColor); |
| 251 |
begin |
| 252 |
NonCurrentItemColor := AValue; |
| 253 |
end; |
| 254 |
{$endif read_implementation_methods} |
| 255 |
|
| 256 |
{$ifdef read_implementation_constructor} |
| 257 |
FNonCurrentItemColorPersistent := TCastleColorPersistent.Create(nil); |
| 258 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 259 |
on themselves, for backward compatibility. But we should not depend on it, |
| 260 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 261 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 262 |
in general (this is more functional, and more standard too). } |
| 263 |
FNonCurrentItemColorPersistent.SetSubComponent(true); |
| 264 |
FNonCurrentItemColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetNonCurrentItemColorForPersistent; |
| 265 |
FNonCurrentItemColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetNonCurrentItemColorForPersistent; |
| 266 |
FNonCurrentItemColorPersistent.InternalDefaultValue := NonCurrentItemColor; // current value is default |
| 267 |
{$endif read_implementation_constructor} |
| 268 |
|
| 269 |
{$ifdef read_implementation_destructor} |
| 270 |
FreeAndNil(FNonCurrentItemColorPersistent); |
| 271 |
{$endif read_implementation_destructor} |
| 272 |
|
| 273 |
{ -*- buffer-read-only: t -*- |
| 274 |
|
| 275 |
Copyright 2018-2022 Michalis Kamburelis. |
| 276 |
|
| 277 |
This file is part of "Castle Game Engine". |
| 278 |
|
| 279 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 280 |
included in this distribution, for details about the copyright. |
| 281 |
|
| 282 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 283 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 284 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 285 |
|
| 286 |
---------------------------------------------------------------------------- |
| 287 |
} |
| 288 |
|
| 289 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 290 |
|
| 291 |
Do not edit this file manually! |
| 292 |
Instead |
| 293 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 294 |
- and run generate-persistent-vectors in that directory. |
| 295 |
} |
| 296 |
|
| 297 |
{$ifdef read_interface_class} |
| 298 |
strict private |
| 299 |
FNonFocusableItemColorPersistent: TCastleColorPersistent; |
| 300 |
function GetNonFocusableItemColorForPersistent: TCastleColor; |
| 301 |
procedure SetNonFocusableItemColorForPersistent(const AValue: TCastleColor); |
| 302 |
published |
| 303 |
{ @link(NonFocusableItemColor) that can be visually edited in |
| 304 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 305 |
Normal user code does not need to deal with this, |
| 306 |
instead read or write @link(NonFocusableItemColor) directly. |
| 307 |
|
| 308 |
@seealso NonFocusableItemColor } |
| 309 |
property NonFocusableItemColorPersistent: TCastleColorPersistent read FNonFocusableItemColorPersistent ; |
| 310 |
{$endif read_interface_class} |
| 311 |
|
| 312 |
{$ifdef read_implementation_methods} |
| 313 |
function TCastleOnScreenMenu.GetNonFocusableItemColorForPersistent: TCastleColor; |
| 314 |
begin |
| 315 |
Result := NonFocusableItemColor; |
| 316 |
end; |
| 317 |
|
| 318 |
procedure TCastleOnScreenMenu.SetNonFocusableItemColorForPersistent(const AValue: TCastleColor); |
| 319 |
begin |
| 320 |
NonFocusableItemColor := AValue; |
| 321 |
end; |
| 322 |
{$endif read_implementation_methods} |
| 323 |
|
| 324 |
{$ifdef read_implementation_constructor} |
| 325 |
FNonFocusableItemColorPersistent := TCastleColorPersistent.Create(nil); |
| 326 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 327 |
on themselves, for backward compatibility. But we should not depend on it, |
| 328 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 329 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 330 |
in general (this is more functional, and more standard too). } |
| 331 |
FNonFocusableItemColorPersistent.SetSubComponent(true); |
| 332 |
FNonFocusableItemColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetNonFocusableItemColorForPersistent; |
| 333 |
FNonFocusableItemColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetNonFocusableItemColorForPersistent; |
| 334 |
FNonFocusableItemColorPersistent.InternalDefaultValue := NonFocusableItemColor; // current value is default |
| 335 |
{$endif read_implementation_constructor} |
| 336 |
|
| 337 |
{$ifdef read_implementation_destructor} |
| 338 |
FreeAndNil(FNonFocusableItemColorPersistent); |
| 339 |
{$endif read_implementation_destructor} |
| 340 |
|