검색창 ui작업
This commit is contained in:
parent
97183a184a
commit
fedc3551e3
File diff suppressed because it is too large
Load Diff
|
|
@ -6,10 +6,15 @@ using UnityEngine.UI;
|
|||
|
||||
public class Common : MonoBehaviour
|
||||
{
|
||||
[SerializeField] TMP_Dropdown dAnimal;
|
||||
[SerializeField] TMP_Dropdown dSuitStyle;
|
||||
[SerializeField] TMP_Dropdown dSuitType;
|
||||
[SerializeField] TMP_Dropdown dRegion;
|
||||
[SerializeField] TMP_Dropdown sAnimal;
|
||||
[SerializeField] TMP_Dropdown sSuitStyle;
|
||||
[SerializeField] TMP_Dropdown sSuitType;
|
||||
[SerializeField] TMP_Dropdown sRegion;
|
||||
|
||||
[SerializeField] TMP_Dropdown fAnimal;
|
||||
[SerializeField] TMP_Dropdown fSuitStyle;
|
||||
[SerializeField] TMP_Dropdown fSuitType;
|
||||
[SerializeField] TMP_Dropdown fRegion;
|
||||
// TODO 내부 저장 기능 만들기
|
||||
// TODO 버전 기능 까지 만들어서 버전 체크후 새로 다운받아오게 만들기.
|
||||
|
||||
|
|
@ -23,7 +28,8 @@ public class Common : MonoBehaviour
|
|||
{
|
||||
strings.Add(data[n].code_nm);
|
||||
}
|
||||
dAnimal.AddOptions(strings);
|
||||
sAnimal.AddOptions(strings);
|
||||
fAnimal.AddOptions(strings);
|
||||
|
||||
}, null, HTTPMethods.Get);
|
||||
HTTPRequest httpSuitStyle = NetworkManager.Instance.CreateRequest<List<CommonData>>("common/suitStyle", new object(), (data) =>
|
||||
|
|
@ -34,7 +40,8 @@ public class Common : MonoBehaviour
|
|||
{
|
||||
strings.Add(data[n].code_nm);
|
||||
}
|
||||
dSuitStyle.AddOptions(strings);
|
||||
sSuitStyle.AddOptions(strings);
|
||||
fSuitStyle.AddOptions(strings);
|
||||
}, null, HTTPMethods.Get);
|
||||
HTTPRequest httpSuitType = NetworkManager.Instance.CreateRequest<List<CommonData>>("common/suitType", new object(), (data) =>
|
||||
{
|
||||
|
|
@ -44,7 +51,8 @@ public class Common : MonoBehaviour
|
|||
{
|
||||
strings.Add(data[n].code_nm);
|
||||
}
|
||||
dSuitType.AddOptions(strings);
|
||||
sSuitType.AddOptions(strings);
|
||||
fSuitType.AddOptions(strings);
|
||||
}, null, HTTPMethods.Get);
|
||||
HTTPRequest httpRegion = NetworkManager.Instance.CreateRequest<List<CommonData>>("common/region", new object(), (data) =>
|
||||
{
|
||||
|
|
@ -54,7 +62,8 @@ public class Common : MonoBehaviour
|
|||
{
|
||||
strings.Add(data[n].code_nm);
|
||||
}
|
||||
dRegion.AddOptions(strings);
|
||||
sRegion.AddOptions(strings);
|
||||
fRegion.AddOptions(strings);
|
||||
}, null, HTTPMethods.Get);
|
||||
httpAnimal.Send();
|
||||
httpSuitStyle.Send();
|
||||
|
|
|
|||
|
|
@ -0,0 +1,108 @@
|
|||
using System;
|
||||
using System.Globalization;
|
||||
using System.Security.Cryptography;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class FursuitAddCtrl : SingletonMonoBehaviour<FursuitAddCtrl>
|
||||
{
|
||||
[SerializeField] GameObject[] stepMenus;
|
||||
[SerializeField] TMP_Text xid;
|
||||
[SerializeField] TMP_InputField owner;
|
||||
[SerializeField] TMP_InputField introeuce;
|
||||
[SerializeField] TMP_InputField characterName;
|
||||
[SerializeField] TMP_InputField makerName;
|
||||
[SerializeField] TMP_Dropdown animalType;
|
||||
[SerializeField] TMP_Dropdown suitType;
|
||||
[SerializeField] TMP_Dropdown suitStyle;
|
||||
[SerializeField] TMP_Dropdown region;
|
||||
[SerializeField] TMP_InputField productionDate;
|
||||
[SerializeField] Toggle[] colors;
|
||||
[SerializeField] Sprite[] isOnSprite;
|
||||
|
||||
[SerializeField] GameObject infoUI;
|
||||
[SerializeField] GameObject successUI;
|
||||
private void OnEnable()
|
||||
{
|
||||
UIReset();
|
||||
}
|
||||
|
||||
private void UIReset()
|
||||
{
|
||||
stepMenus[0].SetActive(false);
|
||||
stepMenus[1].SetActive(false);
|
||||
xid.text = string.Empty;
|
||||
owner.text = string.Empty;
|
||||
introeuce.text = string.Empty;
|
||||
characterName.text = string.Empty;
|
||||
makerName.text = string.Empty;
|
||||
animalType.value = 0;
|
||||
suitType.value = 0;
|
||||
suitStyle.value = 0;
|
||||
region.value = 0;
|
||||
productionDate.text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
for (int n = 0; n < colors.Length; n++)
|
||||
{
|
||||
colors[n].isOn = false;
|
||||
colors[n].image.sprite = isOnSprite[0];
|
||||
}
|
||||
}
|
||||
|
||||
private bool DateTimeCheck(string dateString, out DateTime date)
|
||||
{
|
||||
return DateTime.TryParseExact(dateString, "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.None, out date);
|
||||
}
|
||||
|
||||
public void SuccessButton()
|
||||
{
|
||||
if (xid.text == string.Empty)
|
||||
{
|
||||
Debug.Log("로그인 안됨");
|
||||
return;
|
||||
}
|
||||
if (owner.text == string.Empty)
|
||||
{
|
||||
Debug.Log("오너 정보 없음");
|
||||
return;
|
||||
}
|
||||
|
||||
if (characterName.text == string.Empty)
|
||||
{
|
||||
Debug.Log("케릭터 이름 없음");
|
||||
return;
|
||||
}
|
||||
if (animalType.value == 0)
|
||||
{
|
||||
Debug.Log("동물 정보 없음");
|
||||
return;
|
||||
}
|
||||
if (suitType.value == 0)
|
||||
{
|
||||
Debug.Log("슈트 타입 정보 없음");
|
||||
return;
|
||||
}
|
||||
if (suitStyle.value == 0)
|
||||
{
|
||||
Debug.Log("슈트스타일 정보 없음");
|
||||
return;
|
||||
}
|
||||
if (region.value == 0)
|
||||
{
|
||||
Debug.Log("국가 정보 없음");
|
||||
return;
|
||||
}
|
||||
DateTime date;
|
||||
if (!DateTimeCheck(productionDate.text, out date))
|
||||
{
|
||||
Debug.Log("날자 정보 잘못됨");
|
||||
return;
|
||||
}
|
||||
infoUI.SetActive(false);
|
||||
successUI.SetActive(true);
|
||||
}
|
||||
public void OnToggle(int velue)
|
||||
{
|
||||
colors[velue].image.sprite = isOnSprite[(colors[velue].isOn ? 1 : 0)];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fef2c46c5ce9b124bbaf48ad0f128730
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 729 B |
|
|
@ -0,0 +1,155 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b837c489f1e01ab429ca7eb0049b01f9
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -2278566297644842510
|
||||
second: Icon_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: Icon_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 24
|
||||
height: 42
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 2f1c3bf4608e060e0800000000000000
|
||||
internalID: -2278566297644842510
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","GpuSkinning":false,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"IL2CPP","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"WebGL","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"6000.0.37f1","Branch":"6000.0/staging","Changeset":"090b7797214c","Date":1738096167},"Dependencies":["com.unity.collab-proxy@2.6.0","com.unity.feature.2d@2.0.1","com.unity.ide.rider@3.0.34","com.unity.ide.visualstudio@2.0.22","com.unity.multiplayer.center@1.0.0","com.unity.nuget.newtonsoft-json@3.2.1","com.unity.test-framework@1.4.5","com.unity.timeline@1.8.7","com.unity.ugui@2.0.0","com.unity.visualscripting@1.9.5","com.unity.modules.accessibility@1.0.0","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.vr@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.unity.modules.subsystems@1.0.0","com.unity.modules.hierarchycore@1.0.0","com.unity.ext.nunit@2.0.5","com.unity.2d.animation@10.1.4","com.unity.2d.pixel-perfect@5.0.3","com.unity.2d.psdimporter@9.0.3","com.unity.2d.sprite@1.0.0","com.unity.2d.spriteshape@10.0.7","com.unity.2d.tilemap@1.0.0","com.unity.2d.tilemap.extras@4.1.0","com.unity.2d.aseprite@1.1.8","com.unity.2d.common@9.0.7","com.unity.mathematics@1.3.2","com.unity.collections@2.5.1","com.unity.burst@1.8.19","com.unity.nuget.mono-cecil@1.11.4","com.unity.test-framework.performance@3.0.3"],"Results":[]}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dbf5424a438529346a04421a9b50851a
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"MeasurementCount":-1}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bd45736cfa857c2448864f0047ea6c02
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue