From ViMaSter, 11 Years ago, written in C++.
Embed
  1. AGA_UI_Area::AGA_UI_Area(const class FPostConstructInitializeProperties& PCIP)
  2. : Super(PCIP)
  3. {
  4.         PrimaryActorTick.bCanEverTick = true;
  5.         currentlyDragged = false;
  6.  
  7.         initialized = false;
  8.  
  9.         category = UI_CAT_MAIN;
  10.  
  11.         mouseInButton = false;
  12.  
  13.         Inactive = false;
  14.         dontRefresh = false;
  15.         dontUseParentPadding = false;
  16.         preventHover = false;
  17.         preventActive = false;
  18.         IsDraggable = false;
  19.         IsDropZone = false;
  20.         isTextArea = false;
  21.         SectionName = FString("");
  22.  
  23.         type = AREA_COLOR;
  24.  
  25.         activeOnMenuID = 0;
  26.         switchToMenuID = 0;
  27.  
  28.         item_font = nullptr;
  29.         hover_font = nullptr;
  30.         active_font = nullptr;
  31.  
  32.         current_font = nullptr;
  33.  
  34.  
  35.         item_text = FString("");
  36.         hover_text = FString("");
  37.         active_text = FString("");
  38.  
  39.         current_text = nullptr;
  40.  
  41.         zLayer = 0;
  42.         final_zLayer = 0;
  43.  
  44.         item_position = FVector2D(0, 0);
  45.         fin_item_position = FVector2D(0, 0);
  46.  
  47.         item_size = FVector2D(0, 0);
  48.         fin_item_size = FVector2D(0, 0);
  49.  
  50.         text_position = FVector2D(0, 0);
  51.         fin_text_position = FVector2D(0, 0);
  52.  
  53.         text_size = FVector2D(0, 0);
  54.         fin_text_size = FVector2D(0, 0);
  55.  
  56.         parent_padding = FVector2D(0, 0);
  57.         fin_parent_padding = FVector2D(0, 0);
  58.  
  59.         text_horizontalAlignment = GA_UI_Area_hTextAlign::TEXT_CENTER;
  60.        
  61.         text_verticalAlignment = GA_UI_Area_vTextAlign::TEXT_MIDDLE;
  62.  
  63.         letterSpacing = 0.0f;
  64.  
  65.         item_textColor = FLinearColor(0, 0, 0, 1);
  66.         hover_textColor = FLinearColor(0, 0, 0, 1);
  67.         active_textColor = FLinearColor(0, 0, 0, 1);
  68.         current_textColor = nullptr;
  69.  
  70.         item_backgroundColor = FLinearColor(0, 0, 0, 1);
  71.         hover_backgroundColor = FLinearColor(0, 0, 0, 1);
  72.         active_backgroundColor = FLinearColor(0, 0, 0, 1);
  73.         current_backgroundColor = nullptr;
  74.  
  75.         item_backgroundImage = nullptr;
  76.         hover_backgroundImage = nullptr;
  77.         active_backgroundImage = nullptr;
  78.         current_backgroundImage = nullptr;
  79.  
  80.         item_backgroundMaterial = nullptr;
  81.         hover_backgroundMaterial = nullptr;
  82.         active_backgroundMaterial = nullptr;
  83.         current_backgroundMaterial = nullptr;
  84.  
  85.         old_buttonState = BUTTON_REGULAR;
  86.         buttonState = BUTTON_REGULAR;
  87.  
  88.         childAreas = TArray<UClass*>();
  89.         spawnedChildAreas = TArray<AGA_UI_Area*>();
  90.  
  91.         currentlyDragged = false;
  92.  
  93.         prevMouseHeld = nullptr;
  94.         mouseHeld = nullptr;
  95.  
  96.         originalSize = nullptr;
  97.         currentScreenSize = nullptr;
  98.  
  99.         clickMouseLocation = nullptr;
  100.         prevMouseLocation = nullptr;
  101.         mouseLocation = nullptr;
  102.         currentScale = nullptr;
  103. }