diff --git a/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt b/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt index 0cb2bd1..1640536 100644 --- a/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt +++ b/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt @@ -3,6 +3,7 @@ import android.content.Context import android.databinding.BaseObservable import android.databinding.BindingAdapter +import android.databinding.ObservableBoolean import android.databinding.ObservableInt import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView @@ -38,6 +39,8 @@ val fruitSpinnerAdapter = CustomSpinnerAdapter(context, monstDataRealmHelper.findNames(Fruit::class.java)) val gradeSpinnerAdapter = CustomSpinnerAdapter(context, monstDataRealmHelper.findNames(Grade::class.java)) val registAdapter = RegistAdapter(context, arrayListOf(RegistItemViewModel(fruitSpinnerAdapter, gradeSpinnerAdapter))) + val checkExtra = ObservableBoolean(false) + val wakurinRank = ObservableInt() fun onClickAdd(view: View) { registAdapter.add(RegistItemViewModel(fruitSpinnerAdapter, gradeSpinnerAdapter)) @@ -66,6 +69,8 @@ attribute = monstDataRealmHelper.findTempleAttributeByRank(templeRank.get()), templeId = monstDataRealmHelper.findIdByRank(Temple::class.java, templeRank.get()), specialCount = count, + extra = checkExtra.get(), + wakurin = wakurinRank.get(), dropCount = drops.count(), drops = drops, createAt = Date()