示例#1
0
 private void InitializeSuffixes()
 {
     AddSuffix("X", new SetSuffix <ScalarValue>(() => window.GetRect().x, value => window.SetX(value)));
     AddSuffix("Y", new SetSuffix <ScalarValue>(() => window.GetRect().y, value => window.SetY(value)));
     AddSuffix("DRAGGABLE", new SetSuffix <BooleanValue>(() => window.draggable, value => window.draggable   = value));
     AddSuffix("EXTRADELAY", new SetSuffix <ScalarValue>(() => window.extraDelay, value => window.extraDelay = value));
     AddSuffix("SKIN", new SetSuffix <WidgetSkin>(() => Skin, value => Skin = value));
 }