You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -223,15 +223,18 @@ public virtual bool CanBeSelected {
223
223
/// <summary>
224
224
/// Set this field to false to disallow the element from reacting to being moused over.
225
225
/// </summary>
226
-
publicvirtualboolCanBeMoused{get;set;}=true;
226
+
publicboolCanBeMoused{get;set;}=true;
227
227
/// <summary>
228
228
/// Set this field to false to disallow this element's <see cref="OnPressed"/> and <see cref="OnSecondaryPressed"/> events to be called.
229
229
/// </summary>
230
-
publicvirtualboolCanBePressed{get;set;}=true;
230
+
publicboolCanBePressed{
231
+
get=>this.GetCanBePressed(this.canBePressed);
232
+
set=>this.canBePressed=value;
233
+
}
231
234
/// <summary>
232
235
/// Set this field to false to cause auto-anchored siblings to ignore this element as a possible anchor point.
233
236
/// </summary>
234
-
publicvirtualboolCanAutoAnchorsAttach{
237
+
publicboolCanAutoAnchorsAttach{
235
238
get=>this.canAutoAnchorsAttach;
236
239
set{
237
240
if(this.canAutoAnchorsAttach!=value){
@@ -244,7 +247,7 @@ public virtual bool CanAutoAnchorsAttach {
244
247
/// Set this field to true to cause this element's width to be automatically calculated based on the area that its <see cref="Children"/> take up.
245
248
/// To use this element's <see cref="Size"/>'s X coordinate as a minimum or maximum width rather than ignoring it, set <see cref="TreatSizeAsMinimum"/> or <see cref="TreatSizeAsMaximum"/> to true.
246
249
/// </summary>
247
-
publicvirtualboolSetWidthBasedOnChildren{
250
+
publicboolSetWidthBasedOnChildren{
248
251
get=>this.setWidthBasedOnChildren;
249
252
set{
250
253
if(this.setWidthBasedOnChildren!=value){
@@ -257,7 +260,7 @@ public virtual bool SetWidthBasedOnChildren {
257
260
/// Set this field to true to cause this element's height to be automatically calculated based on the area that its <see cref="Children"/> take up.
258
261
/// To use this element's <see cref="Size"/>'s Y coordinate as a minimum or maximum height rather than ignoring it, set <see cref="TreatSizeAsMinimum"/> or <see cref="TreatSizeAsMaximum"/> to true.
259
262
/// </summary>
260
-
publicvirtualboolSetHeightBasedOnChildren{
263
+
publicboolSetHeightBasedOnChildren{
261
264
get=>this.setHeightBasedOnChildren;
262
265
set{
263
266
if(this.setHeightBasedOnChildren!=value){
@@ -271,7 +274,7 @@ public virtual bool SetHeightBasedOnChildren {
271
274
/// For example, if an element's <see cref="Size"/>'s Y coordinate is set to 20, but there is only one child with a height of 10 in it, the element's height would be shrunk to 10 if this value was false, but would remain at 20 if it was true.
272
275
/// Note that this value only has an effect if <see cref="SetWidthBasedOnChildren"/> or <see cref="SetHeightBasedOnChildren"/> are enabled.
273
276
/// </summary>
274
-
publicvirtualboolTreatSizeAsMinimum{
277
+
publicboolTreatSizeAsMinimum{
275
278
get=>this.treatSizeAsMinimum;
276
279
set{
277
280
if(this.treatSizeAsMinimum!=value){
@@ -284,7 +287,7 @@ public virtual bool TreatSizeAsMinimum {
284
287
/// If this field is set to true, and <see cref="SetWidthBasedOnChildren"/> or <see cref="SetHeightBasedOnChildren"/>are enabled, the resulting width or height weill always be less than or equal to this element's <see cref="Size"/>.
285
288
/// Note that this value only has an effect if <see cref="SetWidthBasedOnChildren"/> or <see cref="SetHeightBasedOnChildren"/> are enabled.
286
289
/// </summary>
287
-
publicvirtualboolTreatSizeAsMaximum{
290
+
publicboolTreatSizeAsMaximum{
288
291
get=>this.treatSizeAsMaximum;
289
292
set{
290
293
if(this.treatSizeAsMaximum!=value){
@@ -298,7 +301,7 @@ public virtual bool TreatSizeAsMaximum {
298
301
/// If the resulting area is too large, the size of this element is shrunk to fit the target area.
299
302
/// This can be useful if an element should fill the remaining area of a parent exactly.
300
303
/// </summary>
301
-
publicvirtualboolPreventParentSpill{
304
+
publicboolPreventParentSpill{
302
305
get=>this.preventParentSpill;
303
306
set{
304
307
if(this.preventParentSpill!=value){
@@ -311,7 +314,7 @@ public virtual bool PreventParentSpill {
311
314
/// The transparency (alpha value) that this element is rendered with.
312
315
/// Note that, when <see cref="Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,float,MLEM.Graphics.SpriteBatchContext)"/> is called, this alpha value is multiplied with the <see cref="Parent"/>'s alpha value and passed down to this element's <see cref="Children"/>.
313
316
/// </summary>
314
-
publicvirtualfloatDrawAlpha{get;set;}=1;
317
+
publicfloatDrawAlpha{get;set;}=1;
315
318
/// <summary>
316
319
/// Stores whether this element is currently being moused over or touched.
317
320
/// </summary>
@@ -335,7 +338,7 @@ public virtual bool PreventParentSpill {
335
338
/// All elements that share the same auto-nav group will be able to be navigated between, and all other elements will not be reachable from elements of other groups.
336
339
/// Note that, if no element is previously selected and auto-navigation is invoked, this element cannot be chosen as the first element to navigate to if its auto-nav group is non-null.
0 commit comments